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 | 4 |
5 #ifndef CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_DELEGATE_H_ |
6 #define CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_DELEGATE_H_ | 6 #define CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_DELEGATE_H_ |
7 | 7 |
8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "base/threading/thread_checker.h" | 9 #include "base/threading/thread_checker.h" |
10 #include "components/signin/core/browser/account_tracker_service.h" | 10 #include "components/signin/core/browser/account_tracker_service.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 const std::string& account_id, | 29 const std::string& account_id, |
30 net::URLRequestContextGetter* getter, | 30 net::URLRequestContextGetter* getter, |
31 OAuth2AccessTokenConsumer* consumer) override; | 31 OAuth2AccessTokenConsumer* consumer) override; |
32 | 32 |
33 // Updates the internal cache of the result from the most-recently-completed | 33 // Updates the internal cache of the result from the most-recently-completed |
34 // auth request (used for reporting errors to the user). | 34 // auth request (used for reporting errors to the user). |
35 void UpdateAuthError(const std::string& account_id, | 35 void UpdateAuthError(const std::string& account_id, |
36 const GoogleServiceAuthError& error) override; | 36 const GoogleServiceAuthError& error) override; |
37 | 37 |
38 bool RefreshTokenIsAvailable(const std::string& account_id) const override; | 38 bool RefreshTokenIsAvailable(const std::string& account_id) const override; |
| 39 bool RefreshTokenHasError(const std::string& account_id) const override; |
39 std::vector<std::string> GetAccounts() override; | 40 std::vector<std::string> GetAccounts() override; |
40 net::URLRequestContextGetter* GetRequestContext() const override; | 41 net::URLRequestContextGetter* GetRequestContext() const override; |
41 | 42 |
42 void LoadCredentials(const std::string& primary_account_id) override; | 43 void LoadCredentials(const std::string& primary_account_id) override; |
43 void UpdateCredentials(const std::string& account_id, | 44 void UpdateCredentials(const std::string& account_id, |
44 const std::string& refresh_token) override; | 45 const std::string& refresh_token) override; |
45 void RevokeAllCredentials() override; | 46 void RevokeAllCredentials() override; |
46 | 47 |
47 // Revokes credentials related to |account_id|. | 48 // Revokes credentials related to |account_id|. |
48 void RevokeCredentials(const std::string& account_id) override; | 49 void RevokeCredentials(const std::string& account_id) override; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 net::BackoffEntry::Policy backoff_policy_; | 146 net::BackoffEntry::Policy backoff_policy_; |
146 net::BackoffEntry backoff_entry_; | 147 net::BackoffEntry backoff_entry_; |
147 GoogleServiceAuthError backoff_error_; | 148 GoogleServiceAuthError backoff_error_; |
148 | 149 |
149 SigninClient* client_; | 150 SigninClient* client_; |
150 SigninErrorController* signin_error_controller_; | 151 SigninErrorController* signin_error_controller_; |
151 AccountTrackerService* account_tracker_service_; | 152 AccountTrackerService* account_tracker_service_; |
152 | 153 |
153 DISALLOW_COPY_AND_ASSIGN(MutableProfileOAuth2TokenServiceDelegate); | 154 DISALLOW_COPY_AND_ASSIGN(MutableProfileOAuth2TokenServiceDelegate); |
154 }; | 155 }; |
155 #endif | 156 |
| 157 #endif // CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_DELEGATE_H
_ |
OLD | NEW |