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

Unified Diff: chrome/browser/services/gcm/push_messaging_service_impl.h

Issue 340773006: Dispatch push event to worker from PushServiceImpl#OnMessage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Get registration from storage if necessary. Created 6 years, 5 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/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 eceb81df2ddd9c41265cd1ac4d9434e9617bfb7d..4d53d940b90681eb37414aae2f0a57d9bedebeb0 100644
--- a/chrome/browser/services/gcm/push_messaging_service_impl.h
+++ b/chrome/browser/services/gcm/push_messaging_service_impl.h
@@ -18,6 +18,11 @@ namespace user_prefs {
class PrefRegistrySyncable;
}
+namespace content {
+struct PushMessagingApplicationId;
+class PushMessagingRouter;
+}
+
namespace gcm {
class GCMProfileService;
@@ -55,6 +60,11 @@ class PushMessagingServiceImpl : public content::PushMessagingService,
const content::PushMessagingService::RegisterCallback& callback) OVERRIDE;
private:
+ void SendMessageCallback(
+ const content::PushMessagingApplicationId& application_id,
+ const GCMClient::IncomingMessage& message,
+ content::PushMessagingStatus status);
+
void RegisterEnd(
const std::string& app_id,
const content::PushMessagingService::RegisterCallback& callback,
@@ -77,6 +87,8 @@ class PushMessagingServiceImpl : public content::PushMessagingService,
Profile* profile_; // It owns our owner.
+ scoped_ptr<content::PushMessagingRouter> push_messaging_router_;
+
base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl);

Powered by Google App Engine
This is Rietveld 408576698