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

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

Issue 179843002: Make invalidations work for Chrome OS Kiosk Apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 9 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/gcm_invalidation_bridge.h
diff --git a/chrome/browser/invalidation/gcm_invalidation_bridge.h b/chrome/browser/invalidation/gcm_invalidation_bridge.h
index e8f920c7f2e80a9210c0838fffd77034e618e7b2..5e885c97ef661bc608777e683e0e4cb8e1d0e97a 100644
--- a/chrome/browser/invalidation/gcm_invalidation_bridge.h
+++ b/chrome/browser/invalidation/gcm_invalidation_bridge.h
@@ -19,8 +19,14 @@ namespace base {
class SingleThreadTaskRunner;
} // namespace base
+namespace gcm {
+class GCMProfileService;
+} // namespace gcm
+
namespace invalidation {
+class InvalidationAuthProvider;
+
// GCMInvalidationBridge and GCMInvalidationBridge::Core implement functions
// needed for GCMNetworkChannel. GCMInvalidationBridge lives on UI thread while
// Core lives on IO thread. Core implements GCMNetworkChannelDelegate and posts
@@ -31,7 +37,8 @@ class GCMInvalidationBridge : public OAuth2TokenService::Consumer,
public:
class Core;
- explicit GCMInvalidationBridge(Profile* profile);
+ GCMInvalidationBridge(gcm::GCMProfileService* gcm_profile_service,
+ InvalidationAuthProvider* auth_provider);
virtual ~GCMInvalidationBridge();
// OAuth2TokenService::Consumer implementation.
@@ -61,9 +68,8 @@ class GCMInvalidationBridge : public OAuth2TokenService::Consumer,
gcm::GCMClient::Result result);
private:
- // GCMInvalidationBridge is owned by TiclInvalidationService therefore it is
- // expected that profile_ pointer is valid throughout lifetime of this object.
- Profile* profile_;
+ gcm::GCMProfileService* const gcm_profile_service_;
+ InvalidationAuthProvider* const auth_provider_;
base::WeakPtr<Core> core_;
scoped_refptr<base::SingleThreadTaskRunner> core_thread_task_runner_;

Powered by Google App Engine
This is Rietveld 408576698