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

Side by Side Diff: components/signin/core/browser/gaia_cookie_manager_service.h

Issue 1110743002: Handle transient LogOut errors with retry and backoff. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rogerta's comments Created 5 years, 7 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
« no previous file with comments | « no previous file | components/signin/core/browser/gaia_cookie_manager_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | components/signin/core/browser/gaia_cookie_manager_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698