| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COMMON_CHILD_PROCESS_HOST_H_ | 5 #ifndef CONTENT_COMMON_CHILD_PROCESS_HOST_H_ |
| 6 #define CHROME_COMMON_CHILD_PROCESS_HOST_H_ | 6 #define CONTENT_COMMON_CHILD_PROCESS_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 | 13 |
| 14 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
| 15 #include <windows.h> | 15 #include <windows.h> |
| 16 #endif // defined(OS_WIN) | 16 #endif // defined(OS_WIN) |
| 17 | 17 |
| 18 #include "base/basictypes.h" | 18 #include "base/basictypes.h" |
| 19 #include "base/scoped_ptr.h" | 19 #include "base/scoped_ptr.h" |
| 20 #include "chrome/common/notification_type.h" | 20 #include "content/common/notification_type.h" |
| 21 #include "ipc/ipc_channel_proxy.h" | 21 #include "ipc/ipc_channel_proxy.h" |
| 22 | 22 |
| 23 class CommandLine; | 23 class CommandLine; |
| 24 class FilePath; | 24 class FilePath; |
| 25 | 25 |
| 26 namespace IPC { | 26 namespace IPC { |
| 27 class Message; | 27 class Message; |
| 28 } | 28 } |
| 29 | 29 |
| 30 // Provides common functionality for hosting a child process and processing IPC | 30 // Provides common functionality for hosting a child process and processing IPC |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 std::string channel_id_; | 116 std::string channel_id_; |
| 117 | 117 |
| 118 // Holds all the IPC message filters. Since this object lives on the IO | 118 // Holds all the IPC message filters. Since this object lives on the IO |
| 119 // thread, we don't have a IPC::ChannelProxy and so we manage filters | 119 // thread, we don't have a IPC::ChannelProxy and so we manage filters |
| 120 // manually. | 120 // manually. |
| 121 std::vector<scoped_refptr<IPC::ChannelProxy::MessageFilter> > filters_; | 121 std::vector<scoped_refptr<IPC::ChannelProxy::MessageFilter> > filters_; |
| 122 | 122 |
| 123 DISALLOW_COPY_AND_ASSIGN(ChildProcessHost); | 123 DISALLOW_COPY_AND_ASSIGN(ChildProcessHost); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 #endif // CHROME_COMMON_CHILD_PROCESS_HOST_H_ | 126 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_H_ |
| OLD | NEW |