Index: Source/modules/serviceworkers/ServiceWorkerGlobalScope.h |
diff --git a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h |
index 3fab81ffd66dff884b7c39248466b9e6c8ef3c22..679df7076aba6a48f333bef964632a13a8bd3865 100644 |
--- a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h |
+++ b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h |
@@ -36,6 +36,9 @@ |
namespace WebCore { |
+class FetchManager; |
+class Request; |
+class ScriptPromise; |
class ServiceWorkerThread; |
class ServiceWorkerClients; |
class WorkerThreadStartupData; |
@@ -46,10 +49,13 @@ public: |
virtual ~ServiceWorkerGlobalScope(); |
virtual bool isServiceWorkerGlobalScope() const OVERRIDE { return true; } |
+ virtual void stopFetch() OVERRIDE; |
// ServiceWorkerGlobalScope.idl |
PassRefPtr<ServiceWorkerClients> clients(); |
String scope(ExecutionContext*); |
+ ScriptPromise fetch(ScriptState*, Request*); |
+ ScriptPromise fetch(ScriptState*, const String&, ExceptionState&); |
// EventTarget |
virtual const AtomicString& interfaceName() const OVERRIDE; |
@@ -66,6 +72,7 @@ private: |
ServiceWorkerGlobalScope(const KURL&, const String& userAgent, ServiceWorkerThread*, double timeOrigin, PassOwnPtrWillBeRawPtr<WorkerClients>); |
RefPtr<ServiceWorkerClients> m_clients; |
+ OwnPtr<FetchManager> m_fetchManager; |
}; |
} // namespace WebCore |