| Index: Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| diff --git a/Source/web/ServiceWorkerGlobalScopeProxy.cpp b/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| index 7ab8240af62fe62bd3a66fe851006eb3fb400127..7cb8df288637c5a1e4b5ea90771207ae916b959a 100644
|
| --- a/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| +++ b/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| @@ -46,6 +46,8 @@
|
| #include "modules/navigatorconnect/AcceptConnectionObserver.h"
|
| #include "modules/navigatorconnect/CrossOriginConnectEvent.h"
|
| #include "modules/navigatorconnect/CrossOriginServiceWorkerClient.h"
|
| +#include "modules/navigatorconnect/ServicePortCollection.h"
|
| +#include "modules/navigatorconnect/WorkerNavigatorServices.h"
|
| #include "modules/notifications/Notification.h"
|
| #include "modules/notifications/NotificationEvent.h"
|
| #include "modules/push_messaging/PushEvent.h"
|
| @@ -150,6 +152,14 @@ void ServiceWorkerGlobalScopeProxy::dispatchPushEvent(int eventID, const WebStri
|
| m_workerGlobalScope->dispatchExtendableEvent(event.release(), observer);
|
| }
|
|
|
| +void ServiceWorkerGlobalScopeProxy::dispatchServicePortConnectEvent(WebServicePortConnectEventCallbacks* rawCallbacks, const WebURL& targetURL, const WebString& origin, WebServicePortID portID)
|
| +{
|
| + ASSERT(m_workerGlobalScope);
|
| + OwnPtr<WebServicePortConnectEventCallbacks> callbacks = adoptPtr(rawCallbacks);
|
| + ServicePortCollection* collection = WorkerNavigatorServices::services(m_workerGlobalScope, *m_workerGlobalScope->navigator());
|
| + collection->dispatchConnectEvent(callbacks.release(), targetURL, origin, portID);
|
| +}
|
| +
|
| void ServiceWorkerGlobalScopeProxy::dispatchSyncEvent(int eventID)
|
| {
|
| ASSERT(m_workerGlobalScope);
|
|
|