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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |