Chromium Code Reviews| Index: chrome/browser/push_messaging/push_messaging_service_impl.h |
| diff --git a/chrome/browser/push_messaging/push_messaging_service_impl.h b/chrome/browser/push_messaging/push_messaging_service_impl.h |
| index c2c08bd15b70349060a3bd833383938f464c154d..fac1c86989a7165ab4a0aa04466c366c0fe847f9 100644 |
| --- a/chrome/browser/push_messaging/push_messaging_service_impl.h |
| +++ b/chrome/browser/push_messaging/push_messaging_service_impl.h |
| @@ -12,6 +12,7 @@ |
| #include "base/callback.h" |
| #include "base/compiler_specific.h" |
| #include "base/gtest_prod_util.h" |
| +#include "base/memory/scoped_ptr.h" |
| #include "base/memory/weak_ptr.h" |
| #include "chrome/browser/background/background_trigger.h" |
| #include "components/content_settings/core/browser/content_settings_observer.h" |
| @@ -31,6 +32,7 @@ |
| class Profile; |
| class PushMessagingAppIdentifier; |
| +class PushMessagingServiceObserver; |
| namespace gcm { |
| class GCMDriver; |
| @@ -131,6 +133,9 @@ class PushMessagingServiceImpl : public content::PushMessagingService, |
| const base::Closure& message_handled_closure, |
| content::PushDeliveryStatus status); |
| + void OnMessageHandled(const std::string& app_id, |
|
Peter Beverloo
2015/12/10 18:47:51
nit: DidHandleMessage for consistency with the oth
Michael van Ouwerkerk
2015/12/11 11:23:54
Done.
|
| + const base::Closure& completion_closure); |
| + |
| // Subscribe methods --------------------------------------------------------- |
| void SubscribeEnd( |
| @@ -231,6 +236,8 @@ class PushMessagingServiceImpl : public content::PushMessagingService, |
| MessageDispatchedCallback message_dispatched_callback_for_testing_; |
| + scoped_ptr<PushMessagingServiceObserver> push_messaging_service_observer_; |
| + |
| base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_; |
| DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); |