Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_ | |
| 6 #define CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "ipc/ipc_listener.h" | |
| 10 | |
| 11 class GURL; | |
| 12 | |
| 13 namespace content { | |
| 14 | |
| 15 // A tiny dispatcher which only handles CreateWorker message. | |
| 16 class EmbeddedWorkerDispatcher : public IPC::Listener { | |
| 17 public: | |
| 18 EmbeddedWorkerDispatcher(); | |
| 19 virtual ~EmbeddedWorkerDispatcher(); | |
| 20 | |
| 21 // IPC::Listener overrides. | |
| 22 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | |
| 23 | |
| 24 private: | |
| 25 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
| |
| 26 | |
| 27 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDispatcher); | |
| 28 }; | |
| 29 | |
| 30 } // namespace content | |
| 31 | |
| 32 #endif // CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_ | |
| OLD | NEW |