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

Unified Diff: components/gcm_driver/gcm_driver.h

Issue 324913004: Skeleton GCMAppHandler for Push API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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: components/gcm_driver/gcm_driver.h
diff --git a/components/gcm_driver/gcm_driver.h b/components/gcm_driver/gcm_driver.h
index e2fe882532c28d68fd2494c96387cebb949af421..59b0226066beca561bb3967d4c4dc037df75f348 100644
--- a/components/gcm_driver/gcm_driver.h
+++ b/components/gcm_driver/gcm_driver.h
@@ -34,6 +34,9 @@ class GCMDriver {
GCMDriver();
virtual ~GCMDriver();
+ void SetLazyLoadAppHandlersClosure(
+ const base::Closure& lazy_load_app_handlers);
+
// Registers |sender_id| for an app. A registration ID will be returned by
// the GCM server.
// |app_id|: application ID.
@@ -157,6 +160,10 @@ class GCMDriver {
// The default handler when no app handler can be found in the map.
DefaultGCMAppHandler default_app_handler_;
+ // Called before the first time GetAppHandler is run, to allow consumers
+ // to register app handlers on demand.
fgorski 2014/06/10 17:09:28 Please explain that scenario a bit better in respo
johnme 2014/06/10 20:33:48 Replied out of band by email.
+ base::Closure lazy_load_app_handlers_;
+
DISALLOW_COPY_AND_ASSIGN(GCMDriver);
};

Powered by Google App Engine
This is Rietveld 408576698