OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SIGNIN_OAUTH2_TOKEN_SERVICE_DELEGATE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_OAUTH2_TOKEN_SERVICE_DELEGATE_ANDROID_H_ |
6 #define CHROME_BROWSER_SIGNIN_OAUTH2_TOKEN_SERVICE_DELEGATE_ANDROID_H_ | 6 #define CHROME_BROWSER_SIGNIN_OAUTH2_TOKEN_SERVICE_DELEGATE_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/android/jni_weak_ref.h" | 12 #include "base/android/jni_weak_ref.h" |
13 #include "base/android/scoped_java_ref.h" | 13 #include "base/android/scoped_java_ref.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/macros.h" |
15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
16 #include "base/time/time.h" | 17 #include "base/time/time.h" |
17 #include "components/signin/core/browser/account_tracker_service.h" | 18 #include "components/signin/core/browser/account_tracker_service.h" |
18 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 19 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
19 #include "google_apis/gaia/google_service_auth_error.h" | 20 #include "google_apis/gaia/google_service_auth_error.h" |
20 #include "google_apis/gaia/oauth2_token_service_delegate.h" | 21 #include "google_apis/gaia/oauth2_token_service_delegate.h" |
21 | 22 |
22 // A specialization of OAuth2TokenServiceDelegate that will be returned by | 23 // A specialization of OAuth2TokenServiceDelegate that will be returned by |
23 // OAuth2TokenServiceDelegateFactory for OS_ANDROID. This instance uses | 24 // OAuth2TokenServiceDelegateFactory for OS_ANDROID. This instance uses |
24 // native Android features to lookup OAuth2 tokens. | 25 // native Android features to lookup OAuth2 tokens. |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 154 |
154 AccountTrackerService* account_tracker_service_; | 155 AccountTrackerService* account_tracker_service_; |
155 RefreshTokenLoadStatus fire_refresh_token_loaded_; | 156 RefreshTokenLoadStatus fire_refresh_token_loaded_; |
156 | 157 |
157 static bool is_testing_profile_; | 158 static bool is_testing_profile_; |
158 | 159 |
159 DISALLOW_COPY_AND_ASSIGN(OAuth2TokenServiceDelegateAndroid); | 160 DISALLOW_COPY_AND_ASSIGN(OAuth2TokenServiceDelegateAndroid); |
160 }; | 161 }; |
161 | 162 |
162 #endif // CHROME_BROWSER_SIGNIN_OAUTH2_TOKEN_SERVICE_DELEGATE_ANDROID_H_ | 163 #endif // CHROME_BROWSER_SIGNIN_OAUTH2_TOKEN_SERVICE_DELEGATE_ANDROID_H_ |
OLD | NEW |