| 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 GOOGLE_APIS_GAIA_ACCOUNT_TRACKER_H_ | 5 #ifndef GOOGLE_APIS_GAIA_ACCOUNT_TRACKER_H_ |
| 6 #define GOOGLE_APIS_GAIA_ACCOUNT_TRACKER_H_ | 6 #define GOOGLE_APIS_GAIA_ACCOUNT_TRACKER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> |
| 9 #include <string> | 10 #include <string> |
| 10 #include <vector> | 11 #include <vector> |
| 11 | 12 |
| 12 #include "base/memory/scoped_ptr.h" | |
| 13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
| 14 #include "google_apis/gaia/gaia_oauth_client.h" | 14 #include "google_apis/gaia/gaia_oauth_client.h" |
| 15 #include "google_apis/gaia/identity_provider.h" | 15 #include "google_apis/gaia/identity_provider.h" |
| 16 #include "google_apis/gaia/oauth2_token_service.h" | 16 #include "google_apis/gaia/oauth2_token_service.h" |
| 17 | 17 |
| 18 class GoogleServiceAuthError; | 18 class GoogleServiceAuthError; |
| 19 | 19 |
| 20 namespace net { | 20 namespace net { |
| 21 class URLRequestContextGetter; | 21 class URLRequestContextGetter; |
| 22 } | 22 } |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 void OnGetUserIdResponse(const std::string& gaia_id) override; | 142 void OnGetUserIdResponse(const std::string& gaia_id) override; |
| 143 void OnOAuthError() override; | 143 void OnOAuthError() override; |
| 144 void OnNetworkError(int response_code) override; | 144 void OnNetworkError(int response_code) override; |
| 145 | 145 |
| 146 private: | 146 private: |
| 147 OAuth2TokenService* token_service_; | 147 OAuth2TokenService* token_service_; |
| 148 net::URLRequestContextGetter* request_context_getter_; | 148 net::URLRequestContextGetter* request_context_getter_; |
| 149 AccountTracker* tracker_; | 149 AccountTracker* tracker_; |
| 150 const std::string account_key_; | 150 const std::string account_key_; |
| 151 | 151 |
| 152 scoped_ptr<OAuth2TokenService::Request> login_token_request_; | 152 std::unique_ptr<OAuth2TokenService::Request> login_token_request_; |
| 153 scoped_ptr<gaia::GaiaOAuthClient> gaia_oauth_client_; | 153 std::unique_ptr<gaia::GaiaOAuthClient> gaia_oauth_client_; |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 } // namespace extensions | 156 } // namespace extensions |
| 157 | 157 |
| 158 #endif // GOOGLE_APIS_GAIA_ACCOUNT_TRACKER_H_ | 158 #endif // GOOGLE_APIS_GAIA_ACCOUNT_TRACKER_H_ |
| OLD | NEW |