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

Unified Diff: content/child/service_worker/embedded_worker_dispatcher.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_dispatcher.h
diff --git a/content/child/service_worker/embedded_worker_dispatcher.h b/content/child/service_worker/embedded_worker_dispatcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..0edd0a2eb6be3c8eed9ec350a59de9ff6c47c2e3
--- /dev/null
+++ b/content/child/service_worker/embedded_worker_dispatcher.h
@@ -0,0 +1,32 @@
+// 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_DISPATCHER_H_
+#define CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_
+
+#include "base/compiler_specific.h"
+#include "ipc/ipc_listener.h"
+
+class GURL;
+
+namespace content {
+
+// A tiny dispatcher which only handles CreateWorker message.
+class EmbeddedWorkerDispatcher : public IPC::Listener {
+ public:
+ EmbeddedWorkerDispatcher();
+ virtual ~EmbeddedWorkerDispatcher();
+
+ // IPC::Listener overrides.
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+
+ private:
+ void OnCreateWorker(const GURL& script_url, int route_id);
michaeln 2013/11/04 22:04:51 I think for serviceworkers we'll need other params
kinuko 2013/11/05 01:01:51 Sure, I had several more parameters for this but d
+
+ DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDispatcher);
+};
+
+} // namespace content
+
+#endif // CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_

Powered by Google App Engine
This is Rietveld 408576698