| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EXTENSIONS_API_IDENTITY_ACCOUNT_TRACKER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IDENTITY_ACCOUNT_TRACKER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_ACCOUNT_TRACKER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_ACCOUNT_TRACKER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // OAuth2TokenService::Observer implementation. | 62 // OAuth2TokenService::Observer implementation. |
| 63 virtual void OnRefreshTokenAvailable(const std::string& account_key) OVERRIDE; | 63 virtual void OnRefreshTokenAvailable(const std::string& account_key) OVERRIDE; |
| 64 virtual void OnRefreshTokenRevoked(const std::string& account_key) OVERRIDE; | 64 virtual void OnRefreshTokenRevoked(const std::string& account_key) OVERRIDE; |
| 65 | 65 |
| 66 void OnUserInfoFetchSuccess(AccountIdFetcher* fetcher, | 66 void OnUserInfoFetchSuccess(AccountIdFetcher* fetcher, |
| 67 const std::string& gaia_id); | 67 const std::string& gaia_id); |
| 68 void OnUserInfoFetchFailure(AccountIdFetcher* fetcher); | 68 void OnUserInfoFetchFailure(AccountIdFetcher* fetcher); |
| 69 | 69 |
| 70 // AuthStatusProvider implementation. | 70 // AuthStatusProvider implementation. |
| 71 virtual std::string GetAccountId() const OVERRIDE; | 71 virtual std::string GetAccountId() const OVERRIDE; |
| 72 virtual std::string GetUsername() const OVERRIDE; |
| 72 virtual GoogleServiceAuthError GetAuthStatus() const OVERRIDE; | 73 virtual GoogleServiceAuthError GetAuthStatus() const OVERRIDE; |
| 73 | 74 |
| 74 // SigninManagerBase::Observer implementation. | 75 // SigninManagerBase::Observer implementation. |
| 75 virtual void GoogleSigninSucceeded(const std::string& username, | 76 virtual void GoogleSigninSucceeded(const std::string& username, |
| 76 const std::string& password) OVERRIDE; | 77 const std::string& password) OVERRIDE; |
| 77 virtual void GoogleSignedOut(const std::string& username) OVERRIDE; | 78 virtual void GoogleSignedOut(const std::string& username) OVERRIDE; |
| 78 | 79 |
| 79 private: | 80 private: |
| 80 struct AccountState { | 81 struct AccountState { |
| 81 AccountIds ids; | 82 AccountIds ids; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 AccountTracker* tracker_; | 134 AccountTracker* tracker_; |
| 134 const std::string account_key_; | 135 const std::string account_key_; |
| 135 | 136 |
| 136 scoped_ptr<OAuth2TokenService::Request> login_token_request_; | 137 scoped_ptr<OAuth2TokenService::Request> login_token_request_; |
| 137 scoped_ptr<gaia::GaiaOAuthClient> gaia_oauth_client_; | 138 scoped_ptr<gaia::GaiaOAuthClient> gaia_oauth_client_; |
| 138 }; | 139 }; |
| 139 | 140 |
| 140 } // namespace extensions | 141 } // namespace extensions |
| 141 | 142 |
| 142 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_ACCOUNT_TRACKER_H_ | 143 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_ACCOUNT_TRACKER_H_ |
| OLD | NEW |