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

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

Issue 13197004: Draft: InvalidationService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Passes tests Created 7 years, 8 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // Virtual for unit test mocking. 191 // Virtual for unit test mocking.
192 virtual void RequestDeviceSearch(); 192 virtual void RequestDeviceSearch();
193 193
194 void HandleSearchResponse(const net::URLFetcher* source); 194 void HandleSearchResponse(const net::URLFetcher* source);
195 void HandleSubmitResponse(const net::URLFetcher* source); 195 void HandleSubmitResponse(const net::URLFetcher* source);
196 196
197 base::WeakPtrFactory<ChromeToMobileService> weak_ptr_factory_; 197 base::WeakPtrFactory<ChromeToMobileService> weak_ptr_factory_;
198 198
199 Profile* profile_; 199 Profile* profile_;
200 200
201 // Sync invalidation service state. Chrome To Mobile requires this service to 201 // Invalidation service state. Chrome To Mobile requires this service to to
202 // to keep the mobile device list up to date and prevent page send failures. 202 // keep the mobile device list up to date and prevent page send failures.
203 bool sync_invalidation_enabled_; 203 bool invalidation_enabled_;
204 204
205 // Used to recieve TokenService notifications for GaiaOAuth2LoginRefreshToken. 205 // Used to recieve TokenService notifications for GaiaOAuth2LoginRefreshToken.
206 content::NotificationRegistrar registrar_; 206 content::NotificationRegistrar registrar_;
207 207
208 // The cloud print service URL and auth access token. 208 // The cloud print service URL and auth access token.
209 GURL cloud_print_url_; 209 GURL cloud_print_url_;
210 std::string access_token_; 210 std::string access_token_;
211 211
212 // The set of snapshots currently available. 212 // The set of snapshots currently available.
213 std::set<base::FilePath> snapshots_; 213 std::set<base::FilePath> snapshots_;
(...skipping 11 matching lines...) Expand all
225 base::OneShotTimer<ChromeToMobileService> auth_retry_timer_; 225 base::OneShotTimer<ChromeToMobileService> auth_retry_timer_;
226 base::OneShotTimer<ChromeToMobileService> search_retry_timer_; 226 base::OneShotTimer<ChromeToMobileService> search_retry_timer_;
227 227
228 // A queue of tasks to perform after an access token is lazily initialized. 228 // A queue of tasks to perform after an access token is lazily initialized.
229 std::queue<base::Closure> task_queue_; 229 std::queue<base::Closure> task_queue_;
230 230
231 DISALLOW_COPY_AND_ASSIGN(ChromeToMobileService); 231 DISALLOW_COPY_AND_ASSIGN(ChromeToMobileService);
232 }; 232 };
233 233
234 #endif // CHROME_BROWSER_CHROME_TO_MOBILE_SERVICE_H_ 234 #endif // CHROME_BROWSER_CHROME_TO_MOBILE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698