| 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; | 11 class Profile; |
| 12 | 12 |
| 13 namespace user_prefs { | 13 namespace user_prefs { |
| 14 class PrefRegistrySyncable; | 14 class PrefRegistrySyncable; |
| 15 } | 15 } |
| 16 | 16 |
| 17 // Centralize URL management for the cloud print service. | 17 // Centralize URL management for the cloud print service. |
| 18 class CloudPrintURL { | 18 class CloudPrintURL { |
| 19 public: | 19 public: |
| 20 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 20 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 21 | 21 |
| 22 explicit CloudPrintURL(Profile* profile) : profile_(profile) {} | 22 explicit CloudPrintURL(Profile* profile) : profile_(profile) {} |
| 23 | 23 |
| 24 GURL GetCloudPrintServiceURL(); | 24 GURL GetCloudPrintServiceURL(); |
| 25 GURL GetCloudPrintServiceDialogURL(); | 25 GURL GetCloudPrintServiceDialogURL(); |
| 26 GURL GetCloudPrintServiceManageURL(); | 26 GURL GetCloudPrintServiceManageURL(); |
| 27 GURL GetCloudPrintServiceEnableURL(const std::string& proxy_id); | 27 GURL GetCloudPrintServiceEnableURL(const std::string& proxy_id); |
| 28 GURL GetCloudPrintSigninURL(); | 28 GURL GetCloudPrintSigninURL(); |
| 29 | 29 |
| 30 // 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 |
| 31 // URLs together, and this gives the unit tests access for testing. | 31 // URLs together, and this gives the unit tests access for testing. |
| 32 static GURL GetCloudPrintLearnMoreURL(); | 32 static GURL GetCloudPrintLearnMoreURL(); |
| 33 static GURL GetCloudPrintTestPageURL(); | 33 static GURL GetCloudPrintTestPageURL(); |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 Profile* profile_; | 36 Profile* profile_; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_ | 39 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_ |
| OLD | NEW |