class ConsoleMessage;
class Document;
+class ServiceWorkerGlobalScope;
class WebEmbeddedWorkerImpl;
class WebServiceWorkerContextClient;
class WebServiceWorkerRequest;
// An instance of this class is supposed to outlive until
// workerThreadTerminated() is called by its corresponding
// WorkerGlobalScope.
-class ServiceWorkerGlobalScopeProxy FINAL
+class ServiceWorkerGlobalScopeProxy final
: public WebServiceWorkerContextProxy
, public WorkerReportingProxy {
WTF_MAKE_NONCOPYABLE(ServiceWorkerGlobalScopeProxy);
virtual ~ServiceWorkerGlobalScopeProxy();
// WebServiceWorkerContextProxy overrides:
- virtual void dispatchActivateEvent(int) OVERRIDE;
- virtual void dispatchInstallEvent(int) OVERRIDE;
- virtual void dispatchFetchEvent(int, const WebServiceWorkerRequest&) OVERRIDE;
- virtual void dispatchMessageEvent(const WebString& message, const WebMessagePortChannelArray&) OVERRIDE;
- virtual void dispatchPushEvent(int, const WebString& data) OVERRIDE;
- virtual void dispatchSyncEvent(int) OVERRIDE;
+ virtual void dispatchActivateEvent(int) override;
+ virtual void dispatchInstallEvent(int) override;
+ virtual void dispatchFetchEvent(int, const WebServiceWorkerRequest&) override;
+ virtual void dispatchGeofencingEvent(int, WebGeofencingEventType, const WebString& regionID, const WebCircularGeofencingRegion&) override;
+ virtual void dispatchMessageEvent(const WebString& message, const WebMessagePortChannelArray&) override;
+ virtual void dispatchPushEvent(int, const WebString& data) override;
+ virtual void dispatchSyncEvent(int) override;
// WorkerReportingProxy overrides:
- virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) OVERRIDE;
- virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) OVERRIDE;
- virtual void postMessageToPageInspector(const String&) OVERRIDE;
- virtual void updateInspectorStateCookie(const String&) OVERRIDE;
- virtual void workerGlobalScopeStarted(WorkerGlobalScope*) OVERRIDE;
- virtual void workerGlobalScopeClosed() OVERRIDE;
- virtual void willDestroyWorkerGlobalScope() OVERRIDE;
- virtual void workerThreadTerminated() OVERRIDE;
+ virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) override;
+ virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) override;
+ virtual void postMessageToPageInspector(const String&) override;
+ virtual void didEvaluateWorkerScript(bool success) override;
+ virtual void workerGlobalScopeStarted(WorkerGlobalScope*) override;
+ virtual void workerGlobalScopeClosed() override;
+ virtual void willDestroyWorkerGlobalScope() override;
+ virtual void workerThreadTerminated() override;
private:
ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, Document&, WebServiceWorkerContextClient&);
WebServiceWorkerContextClient& m_client;
- WorkerGlobalScope* m_workerGlobalScope;
+ ServiceWorkerGlobalScope* m_workerGlobalScope;
};
} // namespace blink