Index: chrome/browser/extensions/api/push_messaging/push_messaging_api.h |
diff --git a/chrome/browser/extensions/api/push_messaging/push_messaging_api.h b/chrome/browser/extensions/api/push_messaging/push_messaging_api.h |
index a00af7382303d0733994b4b36067d1964042c725..24d45fcc3e4f98fd8e9587d9b879ad8245d052c6 100644 |
--- a/chrome/browser/extensions/api/push_messaging/push_messaging_api.h |
+++ b/chrome/browser/extensions/api/push_messaging/push_messaging_api.h |
@@ -27,10 +27,14 @@ namespace content { |
class BrowserContext; |
} |
+namespace invalidation { |
+class InvalidationAuthProvider; |
+} |
+ |
namespace extensions { |
-class PushMessagingInvalidationMapper; |
class ObfuscatedGaiaIdFetcher; |
dcheng
2014/03/20 17:33:36
Do we need this forward declare at all, since we i
Mattias Nissler (ping if slow)
2014/03/20 17:40:09
Nope, good point. I had just mechanically alphabet
|
+class PushMessagingInvalidationMapper; |
// Observes a single InvalidationHandler and generates onMessage events. |
class PushMessagingEventRouter |
@@ -97,13 +101,17 @@ class PushMessagingGetChannelIdFunction |
const GoogleServiceAuthError& error) OVERRIDE; |
// Check if the user is signed into chrome. |
- bool IsUserLoggedIn() const; |
+ bool IsUserLoggedIn(); |
// ObfuscatedGiaiaIdFetcher::Delegate implementation. |
virtual void OnObfuscatedGaiaIdFetchSuccess(const std::string& gaia_id) |
OVERRIDE; |
virtual void OnObfuscatedGaiaIdFetchFailure( |
const GoogleServiceAuthError& error) OVERRIDE; |
+ |
+ // Convenience helper to get the invalidation auth provider. |
+ invalidation::InvalidationAuthProvider* GetInvalidationAuthProvider(); |
+ |
scoped_ptr<ObfuscatedGaiaIdFetcher> fetcher_; |
bool interactive_; |
scoped_ptr<OAuth2TokenService::Request> fetcher_access_token_request_; |