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

Unified Diff: blimp/client/core/session/identity_source.h

Issue 2261273002: Integrate UI with authentication flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Misc fixes/ Created 4 years, 4 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 | « blimp/client/core/blimp_client_context_impl.cc ('k') | blimp/client/core/session/identity_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/core/session/identity_source.h
diff --git a/blimp/client/core/session/identity_source.h b/blimp/client/core/session/identity_source.h
index 972ba76c4d60552f9e16350536ffb76082145197..30663102f5a05dc9fd066e93921a531ee97c4055 100644
--- a/blimp/client/core/session/identity_source.h
+++ b/blimp/client/core/session/identity_source.h
@@ -10,7 +10,6 @@
#include "base/callback.h"
#include "base/macros.h"
-
#include "blimp/client/public/blimp_client_context_delegate.h"
#include "google_apis/gaia/identity_provider.h"
#include "google_apis/gaia/oauth2_token_service.h"
@@ -34,6 +33,12 @@ class IdentitySource : public OAuth2TokenService::Consumer,
// Duplicate connect calls during token fetching will be ignored.
void Connect();
+ // Add sign in state observer.
+ void AddObserver(IdentityProvider::Observer* observer);
+
+ // Remove sign in state observer.
+ void RemoveObserver(IdentityProvider::Observer* observer);
+
// OAuth2TokenService::Consumer implementation.
void OnGetTokenSuccess(const OAuth2TokenService::Request* request,
const std::string& access_token,
@@ -68,6 +73,9 @@ class IdentitySource : public OAuth2TokenService::Consumer,
// Account id of current active user, used during token request.
std::string account_id_;
+ // Current retry count due to request cancellation.
+ int retry_times_;
+
BlimpClientContextDelegate* delegate_;
DISALLOW_COPY_AND_ASSIGN(IdentitySource);
« no previous file with comments | « blimp/client/core/blimp_client_context_impl.cc ('k') | blimp/client/core/session/identity_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698