• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_
6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_
7 #pragma once
8 
9 class GURL;
10 class Profile;
11 
12 // Centralize URL management for the cloud print service.
13 class CloudPrintURL {
14  public:
CloudPrintURL(Profile * profile)15   explicit CloudPrintURL(Profile* profile) : profile_(profile) {}
16 
17   GURL GetCloudPrintServiceURL();
18   GURL GetCloudPrintServiceDialogURL();
19   GURL GetCloudPrintServiceManageURL();
20 
21   // These aren't derived from the service, but it makes sense to keep all the
22   // URLs together, and this gives the unit tests access for testing.
23   static GURL GetCloudPrintLearnMoreURL();
24   static GURL GetCloudPrintTestPageURL();
25 
26  private:
27   void RegisterPreferences();
28 
29   Profile* profile_;
30 };
31 
32 #endif  // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_
33