Index: chrome/browser/services/gcm/push_messaging_service_impl.h |
diff --git a/chrome/browser/services/gcm/push_messaging_service_impl.h b/chrome/browser/services/gcm/push_messaging_service_impl.h |
index aea8a08edf8321f1cd0a9d2d449892652b891164..b507f78436d4377cea6d4a2a61f4092a82f326ef 100644 |
--- a/chrome/browser/services/gcm/push_messaging_service_impl.h |
+++ b/chrome/browser/services/gcm/push_messaging_service_impl.h |
@@ -6,17 +6,26 @@ |
#define CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ |
#include "base/compiler_specific.h" |
+#include "base/memory/ref_counted.h" |
#include "base/memory/weak_ptr.h" |
#include "components/gcm_driver/gcm_app_handler.h" |
#include "components/gcm_driver/gcm_client.h" |
+#include "content/common/service_worker/service_worker_status_code.h" |
#include "content/public/browser/push_messaging_service.h" |
+using content::ServiceWorkerStatusCode; |
+ |
class Profile; |
namespace user_prefs { |
class PrefRegistrySyncable; |
} |
+namespace content { |
+struct PushMessagingApplicationId; |
+class ServiceWorkerContextWrapper; |
+} |
+ |
namespace gcm { |
class GCMProfileService; |
@@ -56,6 +65,11 @@ class PushMessagingServiceImpl : public content::PushMessagingService, |
const content::PushMessagingService::RegisterCallback& callback, |
const std::string& registration_id, |
GCMClient::Result result); |
+ void SendMessage( |
+ const content::PushMessagingApplicationId& id, |
+ const std::string& data, |
+ scoped_refptr<content::ServiceWorkerContextWrapper> worker_context); |
+ void SendMessageCallback(content::ServiceWorkerStatusCode status); |
GCMProfileService* gcm_profile_service_; // It owns us. |