OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_ |
6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_ | 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 class GURL; | 10 class GURL; |
| 11 class Profile; |
| 12 |
| 13 namespace user_prefs { |
11 class PrefRegistrySyncable; | 14 class PrefRegistrySyncable; |
12 class Profile; | 15 } |
13 | 16 |
14 // Centralize URL management for the cloud print service. | 17 // Centralize URL management for the cloud print service. |
15 class CloudPrintURL { | 18 class CloudPrintURL { |
16 public: | 19 public: |
17 static void RegisterUserPrefs(PrefRegistrySyncable* registry); | 20 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); |
18 | 21 |
19 explicit CloudPrintURL(Profile* profile) : profile_(profile) {} | 22 explicit CloudPrintURL(Profile* profile) : profile_(profile) {} |
20 | 23 |
21 GURL GetCloudPrintServiceURL(); | 24 GURL GetCloudPrintServiceURL(); |
22 GURL GetCloudPrintServiceDialogURL(); | 25 GURL GetCloudPrintServiceDialogURL(); |
23 GURL GetCloudPrintServiceManageURL(); | 26 GURL GetCloudPrintServiceManageURL(); |
24 GURL GetCloudPrintServiceEnableURL(const std::string& proxy_id); | 27 GURL GetCloudPrintServiceEnableURL(const std::string& proxy_id); |
25 GURL GetCloudPrintSigninURL(); | 28 GURL GetCloudPrintSigninURL(); |
26 | 29 |
27 // These aren't derived from the service, but it makes sense to keep all the | 30 // These aren't derived from the service, but it makes sense to keep all the |
28 // URLs together, and this gives the unit tests access for testing. | 31 // URLs together, and this gives the unit tests access for testing. |
29 static GURL GetCloudPrintLearnMoreURL(); | 32 static GURL GetCloudPrintLearnMoreURL(); |
30 static GURL GetCloudPrintTestPageURL(); | 33 static GURL GetCloudPrintTestPageURL(); |
31 | 34 |
32 private: | 35 private: |
33 Profile* profile_; | 36 Profile* profile_; |
34 }; | 37 }; |
35 | 38 |
36 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_ | 39 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_ |
OLD | NEW |