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

Unified Diff: content/child/service_worker/embedded_worker_stub.h

Issue 54573002: Initial child-process side plumbing for starting an embedded ServiceWorker context (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated Created 7 years, 1 month 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
Index: content/child/service_worker/embedded_worker_stub.h
diff --git a/content/child/service_worker/embedded_worker_stub.h b/content/child/service_worker/embedded_worker_stub.h
new file mode 100644
index 0000000000000000000000000000000000000000..9e84397ce7a4228e588f5ad33acaf353e0a41349
--- /dev/null
+++ b/content/child/service_worker/embedded_worker_stub.h
@@ -0,0 +1,34 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_STUB_H_
+#define CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_STUB_H_
+
+#include "ipc/ipc_listener.h"
+#include "url/gurl.h"
+
+namespace content {
+
+// TODO(kinuko): Will implements WebKit::WebEmbeddedWorkerClient
+// and owns WebKit::WebEmbeddedWorker instance, which will create a
+// WorkerThread and starts WorkerGlobalScope later when requested.
+class EmbeddedWorkerStub : public IPC::Listener {
+ public:
+ EmbeddedWorkerStub(const GURL& script_url, int route_id);
+
+ // IPC::Listener implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+
+ private:
+ virtual ~EmbeddedWorkerStub();
+
+ GURL script_url_;
+ int route_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerStub);
+};
+
+} // namespace content
+
+#endif // CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_STUB_H_

Powered by Google App Engine
This is Rietveld 408576698