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

Unified Diff: chrome/browser/chromeos/arc/arc_auth_context.h

Issue 2896513002: [Merge M59] arg: Implement retry logic for transient errors (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_auth_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_auth_context.h
diff --git a/chrome/browser/chromeos/arc/arc_auth_context.h b/chrome/browser/chromeos/arc/arc_auth_context.h
index c0aee9cedc78a9d7766de409d19575c78891eeba..8ae63e1cc8bfda3a377d95223544bbecf37c9ef3 100644
--- a/chrome/browser/chromeos/arc/arc_auth_context.h
+++ b/chrome/browser/chromeos/arc/arc_auth_context.h
@@ -12,6 +12,7 @@
#include "base/macros.h"
#include "base/timer/timer.h"
#include "google_apis/gaia/ubertoken_fetcher.h"
+#include "net/base/backoff_entry.h"
class Profile;
class ProfileOAuth2TokenService;
@@ -65,6 +66,7 @@ class ArcAuthContext : public UbertokenConsumer,
void StartFetchers();
void ResetFetchers();
+ void OnFetcherError(const GoogleServiceAuthError& error);
// Unowned pointer.
ProfileOAuth2TokenService* token_service_;
@@ -78,7 +80,11 @@ class ArcAuthContext : public UbertokenConsumer,
PrepareCallback callback_;
bool context_prepared_ = false;
+ // Defines retry logic in case of transient error.
+ net::BackoffEntry retry_backoff_;
+
base::OneShotTimer refresh_token_timeout_;
+ base::OneShotTimer retry_timeout_;
std::unique_ptr<GaiaAuthFetcher> merger_fetcher_;
std::unique_ptr<UbertokenFetcher> ubertoken_fetcher_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_auth_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698