Chromium Code Reviews| 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_ |