| Index: chrome/browser/invalidation/invalidation_auth_provider.h
|
| diff --git a/chrome/browser/invalidation/invalidation_auth_provider.h b/chrome/browser/invalidation/invalidation_auth_provider.h
|
| index 33c14559d5f08cc5b27d5ea0ea0cc92532228116..a499b593a0f367cf53951ecad3c058baff47f7de 100644
|
| --- a/chrome/browser/invalidation/invalidation_auth_provider.h
|
| +++ b/chrome/browser/invalidation/invalidation_auth_provider.h
|
| @@ -23,8 +23,11 @@ class InvalidationAuthProvider {
|
| public:
|
| virtual ~Observer();
|
|
|
| + // Calls when the user logs in.
|
| + virtual void OnInvalidationAuthLogin() {}
|
| +
|
| // Called when the user logs out.
|
| - virtual void OnInvalidationAuthLogout() = 0;
|
| + virtual void OnInvalidationAuthLogout() {}
|
| };
|
|
|
| virtual ~InvalidationAuthProvider();
|
| @@ -32,6 +35,9 @@ class InvalidationAuthProvider {
|
| // Gets the token service vending tokens for authentication to the cloud.
|
| virtual OAuth2TokenService* GetTokenService() = 0;
|
|
|
| + // Gets the username to use for authentication.
|
| + virtual std::string GetUsername() = 0;
|
| +
|
| // Gets the account ID to use for authentication.
|
| virtual std::string GetAccountId() = 0;
|
|
|
| @@ -44,6 +50,9 @@ class InvalidationAuthProvider {
|
| protected:
|
| InvalidationAuthProvider();
|
|
|
| + // Fires an OnInvalidationAuthLogin notification.
|
| + void FireInvalidationAuthLogin();
|
| +
|
| // Fires an OnInvalidationAuthLogout notification.
|
| void FireInvalidationAuthLogout();
|
|
|
|
|