| Index: Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
|
| diff --git a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
|
| index 4c4106d9dbad17ffe0e861e296f6b028cf94a42c..e9ded4a3e69ddad02fd12d65478d29a8f940fe2f 100644
|
| --- a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
|
| +++ b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
|
| @@ -51,6 +51,7 @@
|
| #include "modules/serviceworkers/ServiceWorkerRegistration.h"
|
| #include "modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h"
|
| #include "modules/serviceworkers/ServiceWorkerThread.h"
|
| +#include "modules/serviceworkers/StashedPortCollection.h"
|
| #include "modules/serviceworkers/WaitUntilObserver.h"
|
| #include "platform/network/ResourceRequest.h"
|
| #include "platform/weborigin/DatabaseIdentifier.h"
|
| @@ -116,6 +117,13 @@ void ServiceWorkerGlobalScope::didEvaluateWorkerScript()
|
| m_didEvaluateScript = true;
|
| }
|
|
|
| +PassRefPtrWillBeRawPtr<StashedPortCollection> ServiceWorkerGlobalScope::ports()
|
| +{
|
| + if (!m_ports)
|
| + m_ports = StashedPortCollection::create(this);
|
| + return m_ports;
|
| +}
|
| +
|
| ScriptPromise ServiceWorkerGlobalScope::fetch(ScriptState* scriptState, const RequestInfo& input, const Dictionary& init, ExceptionState& exceptionState)
|
| {
|
| return GlobalFetch::fetch(scriptState, *this, input, init, exceptionState);
|
|
|