| 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 "base/scoped_ptr.h" | |
| 12 #include "chrome/common/child_process_host.h" | 11 #include "chrome/common/child_process_host.h" |
| 13 #include "chrome/common/ipc_channel.h" | 12 #include "chrome/common/ipc_channel.h" |
| 14 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 15 | 14 |
| 16 class ResourceMessageFilter; | 15 class ResourceMessageFilter; |
| 17 | 16 |
| 18 class WorkerProcessHost : public ChildProcessHost { | 17 class WorkerProcessHost : public ChildProcessHost { |
| 19 public: | 18 public: |
| 20 WorkerProcessHost(MessageLoop* main_message_loop); | 19 WorkerProcessHost(MessageLoop* main_message_loop); |
| 21 ~WorkerProcessHost(); | 20 ~WorkerProcessHost(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 47 ResourceMessageFilter* filter; | 46 ResourceMessageFilter* filter; |
| 48 }; | 47 }; |
| 49 | 48 |
| 50 typedef std::list<WorkerInstance> Instances; | 49 typedef std::list<WorkerInstance> Instances; |
| 51 Instances instances_; | 50 Instances instances_; |
| 52 | 51 |
| 53 DISALLOW_COPY_AND_ASSIGN(WorkerProcessHost); | 52 DISALLOW_COPY_AND_ASSIGN(WorkerProcessHost); |
| 54 }; | 53 }; |
| 55 | 54 |
| 56 #endif // CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 55 #endif // CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
| OLD | NEW |