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

Unified Diff: chrome/browser/extensions/api/push_messaging/push_messaging_api.h

Issue 179843002: Make invalidations work for Chrome OS Kiosk Apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/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 60c66a063e312c6edc6328ee81527138664387e9..2996c62a4caa201c1bdd899f54380f8896027908 100644
--- a/chrome/browser/extensions/api/push_messaging/push_messaging_api.h
+++ b/chrome/browser/extensions/api/push_messaging/push_messaging_api.h
@@ -23,10 +23,14 @@
class Profile;
+namespace invalidation {
+class InvalidationAuthProvider;
+}
+
namespace extensions {
-class PushMessagingInvalidationMapper;
class ObfuscatedGaiaIdFetcher;
+class PushMessagingInvalidationMapper;
// Observes a single InvalidationHandler and generates onMessage events.
class PushMessagingEventRouter
@@ -93,13 +97,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_;

Powered by Google App Engine
This is Rietveld 408576698