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_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ |
6 #define CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ | 6 #define CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/android/jni_helper.h" | 11 #include "base/android/jni_weak_ref.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 15 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
16 #include "google_apis/gaia/google_service_auth_error.h" | 16 #include "google_apis/gaia/google_service_auth_error.h" |
17 | 17 |
18 // A specialization of ProfileOAuth2TokenService that will be returned by | 18 // A specialization of ProfileOAuth2TokenService that will be returned by |
19 // ProfileOAuth2TokenServiceFactory for OS_ANDROID. This instance uses | 19 // ProfileOAuth2TokenServiceFactory for OS_ANDROID. This instance uses |
20 // native Android features to lookup OAuth2 tokens. | 20 // native Android features to lookup OAuth2 tokens. |
21 // | 21 // |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // Called to notify observers when refresh tokans have been loaded. | 104 // Called to notify observers when refresh tokans have been loaded. |
105 virtual void FireRefreshTokensLoaded() OVERRIDE; | 105 virtual void FireRefreshTokensLoaded() OVERRIDE; |
106 | 106 |
107 private: | 107 private: |
108 base::android::ScopedJavaGlobalRef<jobject> java_ref_; | 108 base::android::ScopedJavaGlobalRef<jobject> java_ref_; |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(AndroidProfileOAuth2TokenService); | 110 DISALLOW_COPY_AND_ASSIGN(AndroidProfileOAuth2TokenService); |
111 }; | 111 }; |
112 | 112 |
113 #endif // CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ | 113 #endif // CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ |
OLD | NEW |