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

Unified Diff: public/platform/WebServiceWorkerProvider.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/platform/WebServiceWorkerEventResult.h ('k') | public/platform/WebServiceWorkerProviderClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebServiceWorkerProvider.h
diff --git a/public/platform/WebServiceWorkerProvider.h b/public/platform/WebServiceWorkerProvider.h
index 7b2123abbd9e0c7eea77bb16c8ad3f6d407309e6..c26c65ba25a9327e908050d90a8bd6602da27136 100644
--- a/public/platform/WebServiceWorkerProvider.h
+++ b/public/platform/WebServiceWorkerProvider.h
@@ -28,45 +28,4 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebServiceWorkerProvider_h
-#define WebServiceWorkerProvider_h
-
-#include "public/platform/WebCallbacks.h"
-#include "public/platform/WebServiceWorkerRegistration.h"
-#include "public/platform/WebVector.h"
-
-namespace blink {
-
-class WebURL;
-class WebServiceWorker;
-class WebServiceWorkerProviderClient;
-struct WebServiceWorkerError;
-
-// Created on the main thread, and may be passed to another script context
-// thread (e.g. worker thread) later. All methods of this class must be called
-// on the single script context thread.
-class WebServiceWorkerProvider {
-public:
- // Called when a client wants to start listening to the service worker
- // events. Must be cleared before the client becomes invalid.
- virtual void setClient(WebServiceWorkerProviderClient*) { }
-
- // The WebServiceWorkerRegistration and WebServiceWorkerError ownership are
- // passed to the WebServiceWorkerRegistrationCallbacks implementation.
- typedef WebCallbacks<WebServiceWorkerRegistration*, WebServiceWorkerError*> WebServiceWorkerRegistrationCallbacks;
- typedef WebCallbacks<WebServiceWorkerRegistration*, WebServiceWorkerError*> WebServiceWorkerGetRegistrationCallbacks;
- typedef WebCallbacks<WebVector<WebServiceWorkerRegistration*>*, WebServiceWorkerError*> WebServiceWorkerGetRegistrationsCallbacks;
- typedef WebCallbacks<WebServiceWorkerRegistration*, void> WebServiceWorkerGetRegistrationForReadyCallbacks;
-
- virtual void registerServiceWorker(const WebURL& pattern, const WebURL& scriptUrl, WebServiceWorkerRegistrationCallbacks*) { }
- virtual void getRegistration(const WebURL& documentURL, WebServiceWorkerGetRegistrationCallbacks*) { }
- virtual void getRegistrations(WebServiceWorkerGetRegistrationsCallbacks*) { }
- virtual void getRegistrationForReady(WebServiceWorkerGetRegistrationForReadyCallbacks*) { }
- virtual bool validateScopeAndScriptURL(const WebURL& scope, const WebURL& scriptURL, WebString* errorMessage) { return false; }
-
- virtual ~WebServiceWorkerProvider() { }
-};
-
-} // namespace blink
-
-#endif
+#include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h"
« no previous file with comments | « public/platform/WebServiceWorkerEventResult.h ('k') | public/platform/WebServiceWorkerProviderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698