Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.h

Issue 1267843003: Fix reconcilor loop when the primary account is in an auth error state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698