| Index: Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| diff --git a/Source/web/ServiceWorkerGlobalScopeProxy.cpp b/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| index 288c100ca45b82a11eb761e744ef23bce2836d5b..f259073286bf20b10010ce8909fd06e682dc8f0c 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"
|
| @@ -155,6 +157,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);
|
|
|