| Index: Source/modules/serviceworkers/NavigatorServiceWorker.h
|
| diff --git a/Source/modules/serviceworkers/NavigatorServiceWorker.h b/Source/modules/serviceworkers/NavigatorServiceWorker.h
|
| index ef60deecfaa2d63c1ce199f79b796da13aec2fb6..bbd19c0fc5fc6a3683e53dfef6457b2b4d607f06 100644
|
| --- a/Source/modules/serviceworkers/NavigatorServiceWorker.h
|
| +++ b/Source/modules/serviceworkers/NavigatorServiceWorker.h
|
| @@ -34,13 +34,19 @@
|
| #include "bindings/v8/ScriptPromise.h"
|
| #include "core/page/Navigator.h"
|
| #include "platform/Supplementable.h"
|
| +#include "public/platform/WebServiceWorkerProviderClient.h"
|
| +
|
| +namespace WebKit {
|
| +class WebServiceWorkerProvider;
|
| +class WebString;
|
| +}
|
|
|
| namespace WebCore {
|
|
|
| class ExceptionState;
|
| class Navigator;
|
|
|
| -class NavigatorServiceWorker : public Supplement<Navigator> {
|
| +class NavigatorServiceWorker : public Supplement<Navigator>, public WebKit::WebServiceWorkerProviderClient {
|
| public:
|
| virtual ~NavigatorServiceWorker();
|
| static NavigatorServiceWorker* from(Navigator*);
|
| @@ -49,15 +55,21 @@ public:
|
| static ScriptPromise registerServiceWorker(ScriptExecutionContext*, Navigator*, const String& pattern, const String& src, ExceptionState&);
|
| static ScriptPromise unregisterServiceWorker(ScriptExecutionContext*, Navigator*, const String& pattern, ExceptionState&);
|
|
|
| + // WebServiceWorkerProviderClient implementation
|
| + virtual void didFailToStart(const WebKit::WebString& message) OVERRIDE;
|
| +
|
| private:
|
| ScriptPromise registerServiceWorker(ScriptExecutionContext*, const String& pattern, const String& src, ExceptionState&);
|
| ScriptPromise unregisterServiceWorker(ScriptExecutionContext*, const String& pattern, ExceptionState&);
|
|
|
| explicit NavigatorServiceWorker(Navigator*);
|
|
|
| + WebKit::WebServiceWorkerProvider* serviceWorkerProvider();
|
| +
|
| static const char* supplementName();
|
|
|
| Navigator* m_navigator;
|
| + OwnPtr<WebKit::WebServiceWorkerProvider> m_provider;
|
| };
|
|
|
| } // namespace WebCore
|
|
|