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

Side by Side Diff: chrome/browser/chrome_to_mobile_service.h

Issue 10885024: Integrate Chrome To Mobile with Action Box UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address cocoa comments. Created 8 years, 3 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 MobileOS mobile_os; 91 MobileOS mobile_os;
92 string16 mobile_id; 92 string16 mobile_id;
93 GURL url; 93 GURL url;
94 string16 title; 94 string16 title;
95 FilePath snapshot; 95 FilePath snapshot;
96 std::string snapshot_id; 96 std::string snapshot_id;
97 JobType type; 97 JobType type;
98 }; 98 };
99 99
100 // Returns whether Chrome To Mobile is enabled. Check for the 'disable' or 100 // Returns whether Chrome To Mobile is enabled (gated on the Action Box UI).
101 // 'enable' command line switches, otherwise relay the default enabled state.
102 static bool IsChromeToMobileEnabled(); 101 static bool IsChromeToMobileEnabled();
103 102
104 // Register the user prefs associated with this service. 103 // Register the user prefs associated with this service.
105 static void RegisterUserPrefs(PrefService* prefs); 104 static void RegisterUserPrefs(PrefService* prefs);
106 105
107 explicit ChromeToMobileService(Profile* profile); 106 explicit ChromeToMobileService(Profile* profile);
108 virtual ~ChromeToMobileService(); 107 virtual ~ChromeToMobileService();
109 108
110 // Returns true if the service has found any registered mobile devices. 109 // Returns true if the service has found any registered mobile devices.
111 bool HasMobiles() const; 110 bool HasMobiles() const;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 scoped_ptr<OAuth2AccessTokenFetcher> access_token_fetcher_; 227 scoped_ptr<OAuth2AccessTokenFetcher> access_token_fetcher_;
229 base::OneShotTimer<ChromeToMobileService> auth_retry_timer_; 228 base::OneShotTimer<ChromeToMobileService> auth_retry_timer_;
230 229
231 // A queue of tasks to perform after an access token is lazily initialized. 230 // A queue of tasks to perform after an access token is lazily initialized.
232 std::queue<base::Closure> task_queue_; 231 std::queue<base::Closure> task_queue_;
233 232
234 DISALLOW_COPY_AND_ASSIGN(ChromeToMobileService); 233 DISALLOW_COPY_AND_ASSIGN(ChromeToMobileService);
235 }; 234 };
236 235
237 #endif // CHROME_BROWSER_CHROME_TO_MOBILE_SERVICE_H_ 236 #endif // CHROME_BROWSER_CHROME_TO_MOBILE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698