Chromium Code Reviews| 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 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 61 // Triggers a notification to all observers of the OAuth2TokenService that a | 61 // Triggers a notification to all observers of the OAuth2TokenService that a |
| 62 // refresh token is now available. | 62 // refresh token is now available. |
| 63 virtual void FireRefreshTokenRevokedFromJava(JNIEnv* env, | 63 virtual void FireRefreshTokenRevokedFromJava(JNIEnv* env, |
| 64 jobject obj, | 64 jobject obj, |
| 65 const jstring account_name); | 65 const jstring account_name); |
| 66 // Triggers a notification to all observers of the OAuth2TokenService that all | 66 // Triggers a notification to all observers of the OAuth2TokenService that all |
| 67 // refresh tokens have now been loaded. | 67 // refresh tokens have now been loaded. |
| 68 virtual void FireRefreshTokensLoadedFromJava(JNIEnv* env, jobject obj); | 68 virtual void FireRefreshTokensLoadedFromJava(JNIEnv* env, jobject obj); |
| 69 | 69 |
| 70 protected: | 70 protected: |
| 71 friend class ProfileOAuth2TokenServiceFactory; | 71 friend class ProfileOAuth2TokenServiceWrapperImpl; |
|
blundell
2014/02/10 16:19:16
Alternatively, perhaps I should just make these cl
Roger Tawa OOO till Jul 10th
2014/02/10 19:49:13
In a non-BCKS world, like iOS, will the ctor need
blundell
2014/02/13 16:07:06
Well the Android one won't need to be public to me
| |
| 72 AndroidProfileOAuth2TokenService(); | 72 AndroidProfileOAuth2TokenService(); |
| 73 virtual ~AndroidProfileOAuth2TokenService(); | 73 virtual ~AndroidProfileOAuth2TokenService(); |
| 74 | 74 |
| 75 // Overridden from OAuth2TokenService to intercept token fetch requests and | 75 // Overridden from OAuth2TokenService to intercept token fetch requests and |
| 76 // redirect them to the Account Manager. | 76 // redirect them to the Account Manager. |
| 77 virtual void FetchOAuth2Token(RequestImpl* request, | 77 virtual void FetchOAuth2Token(RequestImpl* request, |
| 78 const std::string& account_id, | 78 const std::string& account_id, |
| 79 net::URLRequestContextGetter* getter, | 79 net::URLRequestContextGetter* getter, |
| 80 const std::string& client_id, | 80 const std::string& client_id, |
| 81 const std::string& client_secret, | 81 const std::string& client_secret, |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 96 // Called to notify observers when refresh tokans have been loaded. | 96 // Called to notify observers when refresh tokans have been loaded. |
| 97 virtual void FireRefreshTokensLoaded() OVERRIDE; | 97 virtual void FireRefreshTokensLoaded() OVERRIDE; |
| 98 | 98 |
| 99 private: | 99 private: |
| 100 base::android::ScopedJavaGlobalRef<jobject> java_ref_; | 100 base::android::ScopedJavaGlobalRef<jobject> java_ref_; |
| 101 | 101 |
| 102 DISALLOW_COPY_AND_ASSIGN(AndroidProfileOAuth2TokenService); | 102 DISALLOW_COPY_AND_ASSIGN(AndroidProfileOAuth2TokenService); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 #endif // CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ | 105 #endif // CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ |
| OLD | NEW |