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 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 class GURL; | 10 class GURL; |
12 class Profile; | 11 class Profile; |
13 | 12 |
14 // Centralize URL management for the cloud print service. | 13 // Centralize URL management for the cloud print service. |
15 class CloudPrintURL { | 14 class CloudPrintURL { |
16 public: | 15 public: |
17 explicit CloudPrintURL(Profile* profile) : profile_(profile) {} | 16 explicit CloudPrintURL(Profile* profile) : profile_(profile) {} |
18 | 17 |
19 GURL GetCloudPrintServiceURL(); | 18 GURL GetCloudPrintServiceURL(); |
20 GURL GetCloudPrintServiceDialogURL(); | 19 GURL GetCloudPrintServiceDialogURL(); |
21 GURL GetCloudPrintServiceManageURL(); | 20 GURL GetCloudPrintServiceManageURL(); |
22 GURL GetCloudPrintServiceEnableURL(const std::string& proxy_id); | 21 GURL GetCloudPrintServiceEnableURL(const std::string& proxy_id); |
23 GURL GetCloudPrintSigninURL(); | 22 GURL GetCloudPrintSigninURL(); |
24 | 23 |
25 // These aren't derived from the service, but it makes sense to keep all the | 24 // These aren't derived from the service, but it makes sense to keep all the |
26 // URLs together, and this gives the unit tests access for testing. | 25 // URLs together, and this gives the unit tests access for testing. |
27 static GURL GetCloudPrintLearnMoreURL(); | 26 static GURL GetCloudPrintLearnMoreURL(); |
28 static GURL GetCloudPrintTestPageURL(); | 27 static GURL GetCloudPrintTestPageURL(); |
29 | 28 |
30 private: | 29 private: |
31 void RegisterPreferences(); | 30 void RegisterPreferences(); |
32 | 31 |
33 Profile* profile_; | 32 Profile* profile_; |
34 }; | 33 }; |
35 | 34 |
36 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_ | 35 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_ |
OLD | NEW |