| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // Called to notify observers when a refresh token is available. | 99 // Called to notify observers when a refresh token is available. |
| 100 virtual void FireRefreshTokenAvailable( | 100 virtual void FireRefreshTokenAvailable( |
| 101 const std::string& account_id) OVERRIDE; | 101 const std::string& account_id) OVERRIDE; |
| 102 // Called to notify observers when a refresh token has been revoked. | 102 // Called to notify observers when a refresh token has been revoked. |
| 103 virtual void FireRefreshTokenRevoked(const std::string& account_id) OVERRIDE; | 103 virtual void FireRefreshTokenRevoked(const std::string& account_id) OVERRIDE; |
| 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 std::vector<std::string> current_accounts_; |
| 109 | 110 |
| 110 DISALLOW_COPY_AND_ASSIGN(AndroidProfileOAuth2TokenService); | 111 DISALLOW_COPY_AND_ASSIGN(AndroidProfileOAuth2TokenService); |
| 111 }; | 112 }; |
| 112 | 113 |
| 113 #endif // CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ | 114 #endif // CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ |
| OLD | NEW |