| 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_PULIC_COMMON_CHILD_PROCESS_HOST_H_ | 5 #ifndef CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ |
| 6 #define CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ | 6 #define CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include "base/files/scoped_file.h" |
| 8 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 9 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 10 #include "ipc/ipc_channel_proxy.h" | 11 #include "ipc/ipc_channel_proxy.h" |
| 11 | 12 |
| 12 namespace base { | 13 namespace base { |
| 13 class FilePath; | 14 class FilePath; |
| 14 } | 15 } |
| 15 | 16 |
| 16 namespace IPC { | 17 namespace IPC { |
| 17 class MessageFilter; | 18 class MessageFilter; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 virtual std::string CreateChannel() = 0; | 92 virtual std::string CreateChannel() = 0; |
| 92 | 93 |
| 93 // Returns true iff the IPC channel is currently being opened; | 94 // Returns true iff the IPC channel is currently being opened; |
| 94 virtual bool IsChannelOpening() = 0; | 95 virtual bool IsChannelOpening() = 0; |
| 95 | 96 |
| 96 // Adds an IPC message filter. A reference will be kept to the filter. | 97 // Adds an IPC message filter. A reference will be kept to the filter. |
| 97 virtual void AddFilter(IPC::MessageFilter* filter) = 0; | 98 virtual void AddFilter(IPC::MessageFilter* filter) = 0; |
| 98 | 99 |
| 99 #if defined(OS_POSIX) | 100 #if defined(OS_POSIX) |
| 100 // See IPC::Channel::TakeClientFileDescriptor. | 101 // See IPC::Channel::TakeClientFileDescriptor. |
| 101 virtual int TakeClientFileDescriptor() = 0; | 102 virtual base::ScopedFD TakeClientFileDescriptor() = 0; |
| 102 #endif | 103 #endif |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 }; // namespace content | 106 }; // namespace content |
| 106 | 107 |
| 107 #endif // CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ | 108 #endif // CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ |
| OLD | NEW |