| 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);
|
|
|