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

Unified Diff: public/platform/WebServiceWorker.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 | « Source/platform/network/ResourceResponse.h ('k') | public/platform/WebServiceWorkerCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebServiceWorker.h
diff --git a/public/platform/WebServiceWorker.h b/public/platform/WebServiceWorker.h
index 44b307d4848f59efd1f3d276589759bb22f0cb74..205a8266d179932ecd73006610bc40361456e90c 100644
--- a/public/platform/WebServiceWorker.h
+++ b/public/platform/WebServiceWorker.h
@@ -28,42 +28,4 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebServiceWorker_h
-#define WebServiceWorker_h
-
-#include "WebCommon.h"
-#include "WebMessagePortChannel.h"
-#include "WebServiceWorkerState.h"
-#include "WebString.h"
-#include "WebURL.h"
-#include "WebVector.h"
-
-namespace blink {
-
-class WebServiceWorkerProxy;
-typedef WebVector<class WebMessagePortChannel*> WebMessagePortChannelArray;
-
-class WebServiceWorker {
-public:
- virtual ~WebServiceWorker() { }
-
- // Sets ServiceWorkerProxy, with which callee can start making upcalls
- // to the ServiceWorker object via the client. This doesn't pass the
- // ownership to the callee, and the proxy's lifetime is same as that of
- // WebServiceWorker.
- virtual void setProxy(WebServiceWorkerProxy*) { }
- virtual WebServiceWorkerProxy* proxy() { return nullptr; }
-
- virtual WebURL url() const { return WebURL(); }
- virtual WebServiceWorkerState state() const { return WebServiceWorkerStateUnknown; }
-
- // Callee receives ownership of the passed vector.
- // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/351753
- virtual void postMessage(const WebString&, WebMessagePortChannelArray*) { BLINK_ASSERT_NOT_REACHED(); }
-
- virtual void terminate() { }
-};
-
-}
-
-#endif // WebServiceWorker_h
+#include "public/platform/modules/serviceworker/WebServiceWorker.h"
« no previous file with comments | « Source/platform/network/ResourceResponse.h ('k') | public/platform/WebServiceWorkerCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698