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

Unified Diff: chrome/browser/invalidation/invalidation_auth_provider.h

Issue 225403021: Extract Profile-independent GCMService from GCMProfileService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pass scoped_refptr as const reference. Created 6 years, 8 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
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();

Powered by Google App Engine
This is Rietveld 408576698