OLD | NEW |
---|---|
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 Loading... | |
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 // Sync invalidation service state. Chrome To Mobile requires this service to | 204 // Invalidation service state. Chrome To Mobile requires this service to to |
akalin
2013/05/24 22:58:46
remove extra 'to'
rlarocque
2013/05/29 00:37:55
Done.
| |
205 // to keep the mobile device list up to date and prevent page send failures. | 205 // keep the mobile device list up to date and prevent page send failures. |
206 bool sync_invalidation_enabled_; | 206 bool 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 Loading... | |
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_ |
OLD | NEW |