| 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 <memory> |
| 9 #include <vector> |
| 10 |
| 8 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 9 #include "base/macros.h" | 12 #include "base/macros.h" |
| 10 #include "base/memory/scoped_vector.h" | |
| 11 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
| 12 #include "components/signin/core/browser/account_tracker_service.h" | 14 #include "components/signin/core/browser/account_tracker_service.h" |
| 13 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 15 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
| 14 #include "components/signin/core/browser/signin_error_controller.h" | 16 #include "components/signin/core/browser/signin_error_controller.h" |
| 15 #include "components/webdata/common/web_data_service_base.h" | 17 #include "components/webdata/common/web_data_service_base.h" |
| 16 #include "components/webdata/common/web_data_service_consumer.h" | 18 #include "components/webdata/common/web_data_service_consumer.h" |
| 17 #include "net/base/backoff_entry.h" | 19 #include "net/base/backoff_entry.h" |
| 18 #include "net/base/network_change_notifier.h" | 20 #include "net/base/network_change_notifier.h" |
| 19 | 21 |
| 20 class MutableProfileOAuth2TokenServiceDelegate | 22 class MutableProfileOAuth2TokenServiceDelegate |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // Handle to the request reading tokens from database. | 150 // Handle to the request reading tokens from database. |
| 149 WebDataServiceBase::Handle web_data_service_request_; | 151 WebDataServiceBase::Handle web_data_service_request_; |
| 150 | 152 |
| 151 // The primary account id of this service's profile during the loading of | 153 // The primary account id of this service's profile during the loading of |
| 152 // credentials. This member is empty otherwise. | 154 // credentials. This member is empty otherwise. |
| 153 std::string loading_primary_account_id_; | 155 std::string loading_primary_account_id_; |
| 154 | 156 |
| 155 // The state of the load credentials operation. | 157 // The state of the load credentials operation. |
| 156 LoadCredentialsState load_credentials_state_; | 158 LoadCredentialsState load_credentials_state_; |
| 157 | 159 |
| 158 ScopedVector<RevokeServerRefreshToken> server_revokes_; | 160 std::vector<std::unique_ptr<RevokeServerRefreshToken>> server_revokes_; |
| 159 | 161 |
| 160 // Used to verify that certain methods are called only on the thread on which | 162 // Used to verify that certain methods are called only on the thread on which |
| 161 // this instance was created. | 163 // this instance was created. |
| 162 base::ThreadChecker thread_checker_; | 164 base::ThreadChecker thread_checker_; |
| 163 | 165 |
| 164 // Used to rate-limit network token requests so as to not overload the server. | 166 // Used to rate-limit network token requests so as to not overload the server. |
| 165 net::BackoffEntry::Policy backoff_policy_; | 167 net::BackoffEntry::Policy backoff_policy_; |
| 166 net::BackoffEntry backoff_entry_; | 168 net::BackoffEntry backoff_entry_; |
| 167 GoogleServiceAuthError backoff_error_; | 169 GoogleServiceAuthError backoff_error_; |
| 168 | 170 |
| 169 SigninClient* client_; | 171 SigninClient* client_; |
| 170 SigninErrorController* signin_error_controller_; | 172 SigninErrorController* signin_error_controller_; |
| 171 AccountTrackerService* account_tracker_service_; | 173 AccountTrackerService* account_tracker_service_; |
| 172 | 174 |
| 173 DISALLOW_COPY_AND_ASSIGN(MutableProfileOAuth2TokenServiceDelegate); | 175 DISALLOW_COPY_AND_ASSIGN(MutableProfileOAuth2TokenServiceDelegate); |
| 174 }; | 176 }; |
| 175 | 177 |
| 176 #endif // CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_DELEGATE_H
_ | 178 #endif // CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_DELEGATE_H
_ |
| OLD | NEW |