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

Unified Diff: public/web/WebServiceWorkerContextProxy.h

Issue 285403002: Push API: define push event on Service Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Define PushEvent with data attribute. Created 6 years, 7 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: public/web/WebServiceWorkerContextProxy.h
diff --git a/public/web/WebServiceWorkerContextProxy.h b/public/web/WebServiceWorkerContextProxy.h
index fb3c7a8c065ed16505bfa29efab9ba96204b26d1..3c8a59c7fc89a5e5969b23dba3ac5da81f22a153 100644
--- a/public/web/WebServiceWorkerContextProxy.h
+++ b/public/web/WebServiceWorkerContextProxy.h
@@ -54,6 +54,10 @@ public:
// Once the ServiceWorker has finished handling the sync event
// didHandleSyncEvent is called on the context client.
virtual void dispatchSyncEvent(int syncEventID) = 0;
+
+ // Once the ServiceWorker has finished handling the push event
+ // didHandlePushEvent is called on the context client.
+ virtual void dispatchPushEvent(int eventID, const WebString& data) = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698