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

Unified Diff: public/web/WebServiceWorkerContextProxy.h

Issue 1210633002: Update navigator.services API to use the new services.onconnect event [1/3]. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@serviceport-part3
Patch Set: rebase 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 | « public/platform/modules/navigator_services/WebServicePortProvider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebServiceWorkerContextProxy.h
diff --git a/public/web/WebServiceWorkerContextProxy.h b/public/web/WebServiceWorkerContextProxy.h
index ec71310cedf5532c6a87e84cbb6459c4626d0c09..84b183225e59c83d30c9f5ccba301ce40842e17d 100644
--- a/public/web/WebServiceWorkerContextProxy.h
+++ b/public/web/WebServiceWorkerContextProxy.h
@@ -33,6 +33,7 @@
#include "public/platform/WebGeofencingEventType.h"
#include "public/platform/WebMessagePortChannel.h"
+#include "public/platform/modules/navigator_services/WebServicePortCallbacks.h"
namespace blink {
@@ -67,6 +68,9 @@ public:
virtual void dispatchCrossOriginMessageEvent(const WebCrossOriginServiceWorkerClient&, const WebString& message, const WebMessagePortChannelArray&) = 0;
+ // Passes ownership of the callbacks.
+ virtual void dispatchServicePortConnectEvent(WebServicePortConnectEventCallbacks*, const WebURL& targetURL, const WebString& origin, WebServicePortID) = 0;
+
// Once the ServiceWorker has finished handling the sync event
// didHandleSyncEvent is called on the context client.
virtual void dispatchSyncEvent(int syncEventID) = 0;
« no previous file with comments | « public/platform/modules/navigator_services/WebServicePortProvider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698