Chromium Code Reviews| 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); |
| }; |