OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ |
6 #define CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/singleton.h" | 15 #include "base/memory/singleton.h" |
16 #include "base/shared_memory.h" | 16 #include "base/shared_memory.h" |
17 #include "base/string16.h" | 17 #include "base/string16.h" |
18 #include "ipc/ipc_listener.h" | 18 #include "ipc/ipc_listener.h" |
19 #include "content/public/common/child_process_host.h" | 19 #include "content/public/common/child_process_host.h" |
20 | 20 |
| 21 namespace base { |
21 class FilePath; | 22 class FilePath; |
| 23 } |
22 | 24 |
23 namespace content { | 25 namespace content { |
24 class ChildProcessHostDelegate; | 26 class ChildProcessHostDelegate; |
25 | 27 |
26 // Provides common functionality for hosting a child process and processing IPC | 28 // Provides common functionality for hosting a child process and processing IPC |
27 // messages between the host and the child process. Users are responsible | 29 // messages between the host and the child process. Users are responsible |
28 // for the actual launching and terminating of the child processes. | 30 // for the actual launching and terminating of the child processes. |
29 class CONTENT_EXPORT ChildProcessHostImpl : public ChildProcessHost, | 31 class CONTENT_EXPORT ChildProcessHostImpl : public ChildProcessHost, |
30 public IPC::Listener { | 32 public IPC::Listener { |
31 public: | 33 public: |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // thread, we don't have a IPC::ChannelProxy and so we manage filters | 86 // thread, we don't have a IPC::ChannelProxy and so we manage filters |
85 // manually. | 87 // manually. |
86 std::vector<scoped_refptr<IPC::ChannelProxy::MessageFilter> > filters_; | 88 std::vector<scoped_refptr<IPC::ChannelProxy::MessageFilter> > filters_; |
87 | 89 |
88 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); | 90 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); |
89 }; | 91 }; |
90 | 92 |
91 } // namespace content | 93 } // namespace content |
92 | 94 |
93 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ | 95 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ |
OLD | NEW |