Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / web / ServiceWorkerGlobalScopeProxy.h
index 132c1d1..79e0b27 100644 (file)
@@ -62,9 +62,12 @@ class ServiceWorkerGlobalScopeProxy FINAL :
     public WebCore::WorkerReportingProxy {
     WTF_MAKE_NONCOPYABLE(ServiceWorkerGlobalScopeProxy);
 public:
-    static PassOwnPtr<ServiceWorkerGlobalScopeProxy> create(WebEmbeddedWorkerImpl&, WebCore::ExecutionContext&, PassOwnPtr<WebServiceWorkerContextClient>);
+    static PassOwnPtr<ServiceWorkerGlobalScopeProxy> create(WebEmbeddedWorkerImpl&, WebCore::ExecutionContext&, WebServiceWorkerContextClient&);
     virtual ~ServiceWorkerGlobalScopeProxy();
 
+    // WebServiceWorkerContextProxy overrides:
+    virtual void dispatchInstallEvent(int) OVERRIDE;
+
     // WorkerReportingProxy overrides:
     virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) OVERRIDE;
     virtual void reportConsoleMessage(WebCore::MessageSource, WebCore::MessageLevel, const String& message, int lineNumber, const String& sourceURL) OVERRIDE;
@@ -75,12 +78,12 @@ public:
     virtual void workerGlobalScopeDestroyed() OVERRIDE;
 
 private:
-    ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, WebCore::ExecutionContext&, PassOwnPtr<WebServiceWorkerContextClient>);
+    ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, WebCore::ExecutionContext&, WebServiceWorkerContextClient&);
 
     WebEmbeddedWorkerImpl& m_embeddedWorker;
     WebCore::ExecutionContext& m_executionContext;
 
-    OwnPtr<WebServiceWorkerContextClient> m_client;
+    WebServiceWorkerContextClient& m_client;
 
     WebCore::WorkerGlobalScope* m_workerGlobalScope;
 };