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> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/string16.h" | 17 #include "base/string16.h" |
18 #include "base/timer.h" | 18 #include "base/timer.h" |
19 #include "base/values.h" | 19 #include "base/values.h" |
20 #include "chrome/browser/profiles/profile_keyed_service.h" | 20 #include "chrome/browser/profiles/profile_keyed_service.h" |
21 #include "chrome/browser/sessions/session_id.h" | 21 #include "chrome/browser/sessions/session_id.h" |
22 #include "chrome/common/net/gaia/oauth2_access_token_consumer.h" | |
23 #include "content/public/browser/notification_observer.h" | 22 #include "content/public/browser/notification_observer.h" |
24 #include "content/public/browser/notification_registrar.h" | 23 #include "content/public/browser/notification_registrar.h" |
| 24 #include "google_apis/gaia/oauth2_access_token_consumer.h" |
25 #include "googleurl/src/gurl.h" | 25 #include "googleurl/src/gurl.h" |
26 #include "net/url_request/url_fetcher_delegate.h" | 26 #include "net/url_request/url_fetcher_delegate.h" |
27 #include "sync/notifier/invalidation_handler.h" | 27 #include "sync/notifier/invalidation_handler.h" |
28 | 28 |
29 class OAuth2AccessTokenFetcher; | 29 class OAuth2AccessTokenFetcher; |
30 class Browser; | 30 class Browser; |
31 class CloudPrintURL; | 31 class CloudPrintURL; |
32 class MockChromeToMobileService; | 32 class MockChromeToMobileService; |
33 class PrefService; | 33 class PrefService; |
34 class Profile; | 34 class Profile; |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 scoped_ptr<OAuth2AccessTokenFetcher> access_token_fetcher_; | 227 scoped_ptr<OAuth2AccessTokenFetcher> access_token_fetcher_; |
228 base::OneShotTimer<ChromeToMobileService> auth_retry_timer_; | 228 base::OneShotTimer<ChromeToMobileService> auth_retry_timer_; |
229 | 229 |
230 // 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. |
231 std::queue<base::Closure> task_queue_; | 231 std::queue<base::Closure> task_queue_; |
232 | 232 |
233 DISALLOW_COPY_AND_ASSIGN(ChromeToMobileService); | 233 DISALLOW_COPY_AND_ASSIGN(ChromeToMobileService); |
234 }; | 234 }; |
235 | 235 |
236 #endif // CHROME_BROWSER_CHROME_TO_MOBILE_SERVICE_H_ | 236 #endif // CHROME_BROWSER_CHROME_TO_MOBILE_SERVICE_H_ |
OLD | NEW |