OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
6 #define CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "chrome/common/child_process_host.h" | 11 #include "chrome/common/child_process_host.h" |
12 #include "chrome/common/ipc_channel.h" | |
13 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
| 13 #include "ipc/ipc_channel.h" |
14 | 14 |
15 class WorkerProcessHost : public ChildProcessHost { | 15 class WorkerProcessHost : public ChildProcessHost { |
16 public: | 16 public: |
17 // Contains information about each worker instance, needed to forward messages | 17 // Contains information about each worker instance, needed to forward messages |
18 // between the renderer and worker processes. | 18 // between the renderer and worker processes. |
19 struct WorkerInstance { | 19 struct WorkerInstance { |
20 GURL url; | 20 GURL url; |
21 int renderer_process_id; | 21 int renderer_process_id; |
22 int render_view_route_id; | 22 int render_view_route_id; |
23 int worker_route_id; | 23 int worker_route_id; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 int* route_id); | 66 int* route_id); |
67 void OnCancelCreateDedicatedWorker(int route_id); | 67 void OnCancelCreateDedicatedWorker(int route_id); |
68 void OnForwardToWorker(const IPC::Message& message); | 68 void OnForwardToWorker(const IPC::Message& message); |
69 | 69 |
70 Instances instances_; | 70 Instances instances_; |
71 | 71 |
72 DISALLOW_COPY_AND_ASSIGN(WorkerProcessHost); | 72 DISALLOW_COPY_AND_ASSIGN(WorkerProcessHost); |
73 }; | 73 }; |
74 | 74 |
75 #endif // CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 75 #endif // CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
OLD | NEW |