| 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_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H | 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H |
| 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H | 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 | 232 |
| 233 // Overridden from URLFetcherDelgate. | 233 // Overridden from URLFetcherDelgate. |
| 234 void OnURLFetchComplete(const net::URLFetcher* source) override; | 234 void OnURLFetchComplete(const net::URLFetcher* source) override; |
| 235 | 235 |
| 236 OAuth2TokenService* token_service_; | 236 OAuth2TokenService* token_service_; |
| 237 SigninClient* signin_client_; | 237 SigninClient* signin_client_; |
| 238 scoped_ptr<GaiaAuthFetcher> gaia_auth_fetcher_; | 238 scoped_ptr<GaiaAuthFetcher> gaia_auth_fetcher_; |
| 239 scoped_ptr<UbertokenFetcher> uber_token_fetcher_; | 239 scoped_ptr<UbertokenFetcher> uber_token_fetcher_; |
| 240 ExternalCcResultFetcher external_cc_result_fetcher_; | 240 ExternalCcResultFetcher external_cc_result_fetcher_; |
| 241 | 241 |
| 242 // If the GaiaAuthFetcher fails, retry with exponential backoff. | 242 // If the GaiaAuthFetcher or URLFetcher fails, retry with exponential backoff. |
| 243 net::BackoffEntry gaia_auth_fetcher_backoff_; | 243 net::BackoffEntry fetcher_backoff_; |
| 244 base::OneShotTimer<GaiaCookieManagerService> gaia_auth_fetcher_timer_; | 244 base::OneShotTimer<GaiaCookieManagerService> fetcher_timer_; |
| 245 int gaia_auth_fetcher_retries_; | 245 int fetcher_retries_; |
| 246 | 246 |
| 247 // The last fetched ubertoken, for use in MergeSession retries. | 247 // The last fetched ubertoken, for use in MergeSession retries. |
| 248 std::string uber_token_; | 248 std::string uber_token_; |
| 249 | 249 |
| 250 // Subscription to be called whenever the GAIA cookies change. | 250 // Subscription to be called whenever the GAIA cookies change. |
| 251 scoped_ptr<SigninClient::CookieChangedSubscription> | 251 scoped_ptr<SigninClient::CookieChangedSubscription> |
| 252 cookie_changed_subscription_; | 252 cookie_changed_subscription_; |
| 253 | 253 |
| 254 // A worklist for this class. Stores any pending requests that couldn't be | 254 // A worklist for this class. Stores any pending requests that couldn't be |
| 255 // executed right away, since this class only permits one request to be | 255 // executed right away, since this class only permits one request to be |
| (...skipping 11 matching lines...) Expand all Loading... |
| 267 bool external_cc_result_fetched_; | 267 bool external_cc_result_fetched_; |
| 268 | 268 |
| 269 std::vector<std::pair<std::string, bool> > listed_accounts_; | 269 std::vector<std::pair<std::string, bool> > listed_accounts_; |
| 270 | 270 |
| 271 bool list_accounts_fetched_once_; | 271 bool list_accounts_fetched_once_; |
| 272 | 272 |
| 273 DISALLOW_COPY_AND_ASSIGN(GaiaCookieManagerService); | 273 DISALLOW_COPY_AND_ASSIGN(GaiaCookieManagerService); |
| 274 }; | 274 }; |
| 275 | 275 |
| 276 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H | 276 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H |
| OLD | NEW |