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

Unified Diff: Source/web/ServiceWorkerGlobalScopeProxy.h

Issue 285403002: Push API: define push event on Service Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Avoid modifying modules/serviceworkers/. 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: Source/web/ServiceWorkerGlobalScopeProxy.h
diff --git a/Source/web/ServiceWorkerGlobalScopeProxy.h b/Source/web/ServiceWorkerGlobalScopeProxy.h
index b1e4475b9fb54a2fdfe14660365117ee99c0c8bb..a8b5cdbb81259cbb991e4319baa81aabf3406f59 100644
--- a/Source/web/ServiceWorkerGlobalScopeProxy.h
+++ b/Source/web/ServiceWorkerGlobalScopeProxy.h
@@ -32,6 +32,7 @@
#define ServiceWorkerGlobalScopeProxy_h
#include "core/workers/WorkerReportingProxy.h"
+#include "public/platform/WebString.h"
#include "public/web/WebServiceWorkerContextProxy.h"
#include "wtf/Forward.h"
#include "wtf/OwnPtr.h"
@@ -44,6 +45,7 @@ namespace blink {
class WebEmbeddedWorkerImpl;
class WebServiceWorkerContextClient;
+class WebServiceWorkerPushEventCallback;
// This class is created and destructed on the main thread, but live most
// of its time as a resident of the worker thread.
@@ -71,6 +73,7 @@ public:
virtual void dispatchFetchEvent(int) OVERRIDE;
virtual void dispatchMessageEvent(const WebString& message, const WebMessagePortChannelArray&) OVERRIDE;
virtual void dispatchSyncEvent(int) OVERRIDE;
+ virtual void dispatchPushEvent(int, const WebString& data, const WebServiceWorkerPushEventCallback&) OVERRIDE;
dominicc (has gone to gerrit) 2014/05/22 06:52:28 Maybe alphabetize these?
Michael van Ouwerkerk 2014/05/23 18:32:03 Done.
// WorkerReportingProxy overrides:
virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698