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

Unified Diff: public/web/WebServiceWorkerContextClient.h

Issue 1156703003: ServiceWorker: Introduce ExtendableMessageEvent to replace MessageEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update Created 5 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
« no previous file with comments | « Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | public/web/WebServiceWorkerContextProxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebServiceWorkerContextClient.h
diff --git a/public/web/WebServiceWorkerContextClient.h b/public/web/WebServiceWorkerContextClient.h
index d144efa7f634893d0f79066940f85cc1bf0dff6b..376284c95792cca0d8f0bd01b4e6298467dae1f7 100644
--- a/public/web/WebServiceWorkerContextClient.h
+++ b/public/web/WebServiceWorkerContextClient.h
@@ -141,6 +141,11 @@ public:
// ServiceWorker's script context.
virtual void didHandleCrossOriginConnectEvent(int connectEventID, bool acceptConnect) { }
+ // ServiceWorker specific method. Called after ExtendableMessageEvent
+ // (dispatched via WebServiceWorkerContextProxy) is handled by the
+ // ServiceWorker's script context.
+ virtual void didHandleMessageEvent(int messageEventID, WebServiceWorkerEventResult result) {}
+
// Ownership of the returned object is transferred to the caller.
// This is called on the main thread.
virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider(WebDataSource*) { return nullptr; }
« no previous file with comments | « Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | public/web/WebServiceWorkerContextProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698