Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Side by Side Diff: chrome/browser/printing/cloud_print/cloud_print_url.h

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/session_startup_pref_unittest.cc ('k') | chrome/browser/printing/cloud_print/cloud_print_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698