Index: public/web/WebServiceWorkerContextProxy.h |
diff --git a/public/web/WebServiceWorkerContextProxy.h b/public/web/WebServiceWorkerContextProxy.h |
index 84f8be975cb511cd9040f337bf1293ded246daef..40ea9fb8c786ef1fc2b022a674cf489308bb1528 100644 |
--- a/public/web/WebServiceWorkerContextProxy.h |
+++ b/public/web/WebServiceWorkerContextProxy.h |
@@ -28,53 +28,4 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef WebServiceWorkerContextProxy_h |
-#define WebServiceWorkerContextProxy_h |
- |
-#include "public/platform/WebGeofencingEventType.h" |
-#include "public/platform/WebMessagePortChannel.h" |
-#include "public/platform/modules/navigator_services/WebServicePortCallbacks.h" |
- |
-namespace blink { |
- |
-struct WebCircularGeofencingRegion; |
-struct WebCrossOriginServiceWorkerClient; |
-struct WebNotificationData; |
-class WebServiceWorkerRegistration; |
-class WebServiceWorkerRequest; |
-class WebString; |
-struct WebSyncRegistration; |
- |
-// A proxy interface to talk to the worker's GlobalScope implementation. |
-// All methods of this class must be called on the worker thread. |
-class WebServiceWorkerContextProxy { |
-public: |
- virtual ~WebServiceWorkerContextProxy() { } |
- |
- virtual void setRegistration(WebServiceWorkerRegistration*) = 0; |
- virtual void dispatchActivateEvent(int eventID) = 0; |
- // FIXME: This needs to pass the active service worker info. |
- virtual void dispatchInstallEvent(int installEventID) = 0; |
- virtual void dispatchFetchEvent(int fetchEventID, const WebServiceWorkerRequest& webRequest) = 0; |
- |
- virtual void dispatchGeofencingEvent(int eventID, WebGeofencingEventType, const WebString& regionID, const WebCircularGeofencingRegion&) = 0; |
- |
- virtual void dispatchMessageEvent(const WebString& message, const WebMessagePortChannelArray& channels) = 0; |
- |
- virtual void dispatchNotificationClickEvent(int eventID, int64_t notificationID, const WebNotificationData&, int actionIndex) = 0; |
- |
- virtual void dispatchPushEvent(int eventID, const WebString& data) = 0; |
- |
- virtual void dispatchCrossOriginMessageEvent(const WebCrossOriginServiceWorkerClient&, const WebString& message, const WebMessagePortChannelArray&) = 0; |
- |
- // Passes ownership of the callbacks. |
- virtual void dispatchServicePortConnectEvent(WebServicePortConnectEventCallbacks*, const WebURL& targetURL, const WebString& origin, WebServicePortID) = 0; |
- |
- // Once the ServiceWorker has finished handling the sync event, |
- // didHandleSyncEvent is called on the context client. |
- virtual void dispatchSyncEvent(int syncEventID, const WebSyncRegistration&) = 0; |
-}; |
- |
-} // namespace blink |
- |
-#endif // WebServiceWorkerContextProxy_h |
+#include "public/web/modules/serviceworker/WebServiceWorkerContextProxy.h" |