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

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

Issue 17911005: Merge 208347 "Revert 208315 "Make use of InvalidationService"" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1547/src/
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/chrome_to_mobile_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // Virtual for unit test mocking. 194 // Virtual for unit test mocking.
195 virtual void RequestDeviceSearch(); 195 virtual void RequestDeviceSearch();
196 196
197 void HandleSearchResponse(const net::URLFetcher* source); 197 void HandleSearchResponse(const net::URLFetcher* source);
198 void HandleSubmitResponse(const net::URLFetcher* source); 198 void HandleSubmitResponse(const net::URLFetcher* source);
199 199
200 base::WeakPtrFactory<ChromeToMobileService> weak_ptr_factory_; 200 base::WeakPtrFactory<ChromeToMobileService> weak_ptr_factory_;
201 201
202 Profile* profile_; 202 Profile* profile_;
203 203
204 // Invalidation service state. Chrome To Mobile requires this service to keep 204 // Sync invalidation service state. Chrome To Mobile requires this service to
205 // the mobile device list up to date and prevent page send failures. 205 // to keep the mobile device list up to date and prevent page send failures.
206 bool invalidation_enabled_; 206 bool sync_invalidation_enabled_;
207 207
208 // Used to recieve TokenService notifications for GaiaOAuth2LoginRefreshToken. 208 // Used to recieve TokenService notifications for GaiaOAuth2LoginRefreshToken.
209 content::NotificationRegistrar registrar_; 209 content::NotificationRegistrar registrar_;
210 210
211 // The cloud print service URL and auth access token. 211 // The cloud print service URL and auth access token.
212 GURL cloud_print_url_; 212 GURL cloud_print_url_;
213 std::string access_token_; 213 std::string access_token_;
214 214
215 // The set of snapshots currently available. 215 // The set of snapshots currently available.
216 std::set<base::FilePath> snapshots_; 216 std::set<base::FilePath> snapshots_;
(...skipping 11 matching lines...) Expand all
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 | « no previous file | chrome/browser/chrome_to_mobile_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698