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

Side by Side Diff: chrome/browser/chrome_to_mobile_service.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHROME_TO_MOBILE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROME_TO_MOBILE_SERVICE_H_
6 #define CHROME_BROWSER_CHROME_TO_MOBILE_SERVICE_H_ 6 #define CHROME_BROWSER_CHROME_TO_MOBILE_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 // Returns whether Chrome To Mobile is enabled (gated on the Action Box UI). 95 // Returns whether Chrome To Mobile is enabled (gated on the Action Box UI).
96 static bool IsChromeToMobileEnabled(); 96 static bool IsChromeToMobileEnabled();
97 97
98 // Update and return the IDC_CHROME_TO_MOBILE_PAGE command enabled state; the 98 // Update and return the IDC_CHROME_TO_MOBILE_PAGE command enabled state; the
99 // state is derived from commandline, profile, and current page applicability. 99 // state is derived from commandline, profile, and current page applicability.
100 // NOTE: Call this instead of IsCommandEnabled(IDC_CHROME_TO_MOBILE_PAGE). 100 // NOTE: Call this instead of IsCommandEnabled(IDC_CHROME_TO_MOBILE_PAGE).
101 static bool UpdateAndGetCommandState(Browser* browser); 101 static bool UpdateAndGetCommandState(Browser* browser);
102 102
103 // Register the user prefs associated with this service. 103 // Register the user prefs associated with this service.
104 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); 104 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
105 105
106 explicit ChromeToMobileService(Profile* profile); 106 explicit ChromeToMobileService(Profile* profile);
107 virtual ~ChromeToMobileService(); 107 virtual ~ChromeToMobileService();
108 108
109 // Returns true if the service has found any registered mobile devices. 109 // Returns true if the service has found any registered mobile devices.
110 bool HasMobiles() const; 110 bool HasMobiles() const;
111 111
112 // Get the non-NULL ListValue of mobile devices from the cloud print service. 112 // Get the non-NULL ListValue of mobile devices from the cloud print service.
113 // The list is owned by PrefService, which outlives ChromeToMobileService. 113 // The list is owned by PrefService, which outlives ChromeToMobileService.
114 // Each device DictionaryValue contains strings "type", "name", and "id". 114 // Each device DictionaryValue contains strings "type", "name", and "id".
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 base::OneShotTimer<ChromeToMobileService> auth_retry_timer_; 228 base::OneShotTimer<ChromeToMobileService> auth_retry_timer_;
229 base::OneShotTimer<ChromeToMobileService> search_retry_timer_; 229 base::OneShotTimer<ChromeToMobileService> search_retry_timer_;
230 230
231 // A queue of tasks to perform after an access token is lazily initialized. 231 // A queue of tasks to perform after an access token is lazily initialized.
232 std::queue<base::Closure> task_queue_; 232 std::queue<base::Closure> task_queue_;
233 233
234 DISALLOW_COPY_AND_ASSIGN(ChromeToMobileService); 234 DISALLOW_COPY_AND_ASSIGN(ChromeToMobileService);
235 }; 235 };
236 236
237 #endif // CHROME_BROWSER_CHROME_TO_MOBILE_SERVICE_H_ 237 #endif // CHROME_BROWSER_CHROME_TO_MOBILE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/chrome_to_mobile_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698