OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_ | 5 #ifndef COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_ |
6 #define COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_ | 6 #define COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 class AccountInfo : public SigninErrorController::AuthStatusProvider { | 107 class AccountInfo : public SigninErrorController::AuthStatusProvider { |
108 public: | 108 public: |
109 AccountInfo(ProfileOAuth2TokenService* token_service, | 109 AccountInfo(ProfileOAuth2TokenService* token_service, |
110 const std::string& account_id); | 110 const std::string& account_id); |
111 virtual ~AccountInfo(); | 111 virtual ~AccountInfo(); |
112 | 112 |
113 void SetLastAuthError(const GoogleServiceAuthError& error); | 113 void SetLastAuthError(const GoogleServiceAuthError& error); |
114 | 114 |
115 // SigninErrorController::AuthStatusProvider implementation. | 115 // SigninErrorController::AuthStatusProvider implementation. |
116 virtual std::string GetAccountId() const OVERRIDE; | 116 virtual std::string GetAccountId() const OVERRIDE; |
| 117 virtual std::string GetUsername() const OVERRIDE; |
117 virtual GoogleServiceAuthError GetAuthStatus() const OVERRIDE; | 118 virtual GoogleServiceAuthError GetAuthStatus() const OVERRIDE; |
118 | 119 |
119 private: | 120 private: |
120 ProfileOAuth2TokenService* token_service_; | 121 ProfileOAuth2TokenService* token_service_; |
121 std::string account_id_; | 122 std::string account_id_; |
122 GoogleServiceAuthError last_auth_error_; | 123 GoogleServiceAuthError last_auth_error_; |
123 | 124 |
124 DISALLOW_COPY_AND_ASSIGN(AccountInfo); | 125 DISALLOW_COPY_AND_ASSIGN(AccountInfo); |
125 }; | 126 }; |
126 | 127 |
(...skipping 26 matching lines...) Expand all Loading... |
153 // | 154 // |
154 // If |use_legacy_token_service_| is true, then this | 155 // If |use_legacy_token_service_| is true, then this |
155 // |ProfileOAuth2TokenServiceIOS| delegates all calls to the parent | 156 // |ProfileOAuth2TokenServiceIOS| delegates all calls to the parent |
156 // |MutableProfileOAuth2TokenService|. | 157 // |MutableProfileOAuth2TokenService|. |
157 bool use_legacy_token_service_; | 158 bool use_legacy_token_service_; |
158 | 159 |
159 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenServiceIOS); | 160 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenServiceIOS); |
160 }; | 161 }; |
161 | 162 |
162 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_ | 163 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_H_ |
OLD | NEW |