| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELEGATE_
H_ | 4 #ifndef COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELEGATE_
H_ |
| 5 #define COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELEGATE_
H_ | 5 #define COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELEGATE_
H_ |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/memory/linked_ptr.h" | 9 #include "base/memory/linked_ptr.h" |
| 10 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 OAuth2AccessTokenFetcher* CreateAccessTokenFetcher( | 24 OAuth2AccessTokenFetcher* CreateAccessTokenFetcher( |
| 25 const std::string& account_id, | 25 const std::string& account_id, |
| 26 net::URLRequestContextGetter* getter, | 26 net::URLRequestContextGetter* getter, |
| 27 OAuth2AccessTokenConsumer* consumer) override; | 27 OAuth2AccessTokenConsumer* consumer) override; |
| 28 | 28 |
| 29 // KeyedService | 29 // KeyedService |
| 30 void Shutdown() override; | 30 void Shutdown() override; |
| 31 | 31 |
| 32 bool RefreshTokenIsAvailable(const std::string& account_id) const override; | 32 bool RefreshTokenIsAvailable(const std::string& account_id) const override; |
| 33 bool RefreshTokenHasError(const std::string& account_id) const override; |
| 34 void UpdateAuthError(const std::string& account_id, |
| 35 const GoogleServiceAuthError& error) override; |
| 33 | 36 |
| 34 void LoadCredentials(const std::string& primary_account_id) override; | 37 void LoadCredentials(const std::string& primary_account_id) override; |
| 35 std::vector<std::string> GetAccounts() override; | 38 std::vector<std::string> GetAccounts() override; |
| 36 void UpdateAuthError(const std::string& account_id, | |
| 37 const GoogleServiceAuthError& error) override; | |
| 38 | 39 |
| 39 // This method should not be called when using shared authentication. | 40 // This method should not be called when using shared authentication. |
| 40 void UpdateCredentials(const std::string& account_id, | 41 void UpdateCredentials(const std::string& account_id, |
| 41 const std::string& refresh_token) override; | 42 const std::string& refresh_token) override; |
| 42 | 43 |
| 43 // Removes all credentials from this instance of |ProfileOAuth2TokenService|, | 44 // Removes all credentials from this instance of |ProfileOAuth2TokenService|, |
| 44 // however, it does not revoke the identities from the device. | 45 // however, it does not revoke the identities from the device. |
| 45 // Subsequent calls to |RefreshTokenIsAvailable| will return |false|. | 46 // Subsequent calls to |RefreshTokenIsAvailable| will return |false|. |
| 46 void RevokeAllCredentials() override; | 47 void RevokeAllCredentials() override; |
| 47 | 48 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // The client with which this instance was initialied, or NULL. | 129 // The client with which this instance was initialied, or NULL. |
| 129 SigninClient* client_; | 130 SigninClient* client_; |
| 130 ProfileOAuth2TokenServiceIOSProvider* provider_; | 131 ProfileOAuth2TokenServiceIOSProvider* provider_; |
| 131 | 132 |
| 132 // The error controller with which this instance was initialized, or NULL. | 133 // The error controller with which this instance was initialized, or NULL. |
| 133 SigninErrorController* signin_error_controller_; | 134 SigninErrorController* signin_error_controller_; |
| 134 | 135 |
| 135 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenServiceIOSDelegate); | 136 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenServiceIOSDelegate); |
| 136 }; | 137 }; |
| 137 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELEGA
TE_H_ | 138 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_DELEGA
TE_H_ |
| OLD | NEW |