Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Unified Diff: public/web/WebServiceWorkerContextProxy.h

Issue 1262943002: Move ServiceWorker public headers to public/{web,platform}/modules/serviceworker (1/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased 2 Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/web/WebServiceWorkerContextClient.h ('k') | public/web/WebServiceWorkerNetworkProvider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
« no previous file with comments | « public/web/WebServiceWorkerContextClient.h ('k') | public/web/WebServiceWorkerNetworkProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698