| Index: Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| diff --git a/Source/web/ServiceWorkerGlobalScopeProxy.cpp b/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| index 6b3513a7d5fa1fc44bff93e0b01799d74c2069b7..7aae6ed864983456bb8d0d5f187d80eb46077448 100644
|
| --- a/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| +++ b/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| @@ -52,6 +52,8 @@
|
| #include "modules/serviceworkers/ExtendableEvent.h"
|
| #include "modules/serviceworkers/FetchEvent.h"
|
| #include "modules/serviceworkers/ServiceWorkerGlobalScope.h"
|
| +#include "modules/serviceworkers/StashedMessagePort.h"
|
| +#include "modules/serviceworkers/StashedPortCollection.h"
|
| #include "modules/serviceworkers/WaitUntilObserver.h"
|
| #include "platform/RuntimeEnabledFeatures.h"
|
| #include "public/platform/WebCrossOriginServiceWorkerClient.h"
|
| @@ -179,6 +181,13 @@ void ServiceWorkerGlobalScopeProxy::dispatchCrossOriginMessageEvent(const WebCro
|
| m_workerGlobalScope->dispatchEvent(event);
|
| }
|
|
|
| +void ServiceWorkerGlobalScopeProxy::addStashedMessagePorts(const WebMessagePortChannelArray& webChannels, const WebVector<WebString>& webChannelNames)
|
| +{
|
| + ASSERT(m_workerGlobalScope);
|
| + OwnPtrWillBeRawPtr<StashedMessagePortArray> ports = StashedMessagePort::toStashedMessagePortArray(m_workerGlobalScope, webChannels, webChannelNames);
|
| + m_workerGlobalScope->ports()->addPorts(*ports);
|
| +}
|
| +
|
| void ServiceWorkerGlobalScopeProxy::reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL, int)
|
| {
|
| m_client.reportException(errorMessage, lineNumber, columnNumber, sourceURL);
|
|
|