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

Side by Side Diff: components/signin/ios/browser/profile_oauth2_token_service_ios_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 #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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698