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