Index: Source/modules/serviceworkers/ServiceWorkerContainer.h |
diff --git a/Source/modules/serviceworkers/ServiceWorkerContainer.h b/Source/modules/serviceworkers/ServiceWorkerContainer.h |
index f1dd4419884f3221d505f072730b48bded1beeae..27d2e73bd280d110b0a78d97121bcfb1a4015b5d 100644 |
--- a/Source/modules/serviceworkers/ServiceWorkerContainer.h |
+++ b/Source/modules/serviceworkers/ServiceWorkerContainer.h |
@@ -34,6 +34,7 @@ |
#include "bindings/v8/ScriptPromise.h" |
#include "bindings/v8/ScriptWrappable.h" |
#include "core/dom/ContextLifecycleObserver.h" |
+#include "modules/serviceworkers/ServiceWorker.h" |
#include "public/platform/WebServiceWorkerProviderClient.h" |
#include "wtf/Forward.h" |
#include "wtf/PassRefPtr.h" |
@@ -64,6 +65,8 @@ public: |
ScriptPromise registerServiceWorker(ExecutionContext*, const String& pattern, const Dictionary&); |
ScriptPromise unregisterServiceWorker(ExecutionContext*, const String& scope = String()); |
+ PassRefPtr<ServiceWorker> current() { return m_current; } |
+ |
// WebServiceWorkerProviderClient overrides. |
virtual void setCurrentServiceWorker(blink::WebServiceWorker*) OVERRIDE; |