| 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_PUBLIC_COMMON_CHILD_PROCESS_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_H_ | 6 #define CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/files/scoped_file.h" | 10 #include "base/files/scoped_file.h" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "ipc/attachment_broker_privileged.h" | 13 #include "ipc/attachment_broker_privileged.h" |
| 14 #include "ipc/ipc_channel_proxy.h" | 14 #include "ipc/ipc_channel_proxy.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class FilePath; | 17 class FilePath; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace IPC { | 20 namespace IPC { |
| 21 class MessageFilter; | 21 class MessageFilter; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace shell { | 24 namespace service_manager { |
| 25 class InterfaceProvider; | 25 class InterfaceProvider; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace content { | 28 namespace content { |
| 29 | 29 |
| 30 class ChildProcessHostDelegate; | 30 class ChildProcessHostDelegate; |
| 31 | 31 |
| 32 // This represents a non-browser process. This can include traditional child | 32 // This represents a non-browser process. This can include traditional child |
| 33 // processes like plugins, or an embedder could even use this for long lived | 33 // processes like plugins, or an embedder could even use this for long lived |
| 34 // processes that run independent of the browser process. | 34 // processes that run independent of the browser process. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // Creates the IPC channel over a Mojo message pipe. The pipe connection is | 91 // Creates the IPC channel over a Mojo message pipe. The pipe connection is |
| 92 // brokered through the shell like any other service connection. | 92 // brokered through the shell like any other service connection. |
| 93 virtual void CreateChannelMojo() = 0; | 93 virtual void CreateChannelMojo() = 0; |
| 94 | 94 |
| 95 // Returns true iff the IPC channel is currently being opened; | 95 // Returns true iff the IPC channel is currently being opened; |
| 96 virtual bool IsChannelOpening() = 0; | 96 virtual bool IsChannelOpening() = 0; |
| 97 | 97 |
| 98 // Adds an IPC message filter. A reference will be kept to the filter. | 98 // Adds an IPC message filter. A reference will be kept to the filter. |
| 99 virtual void AddFilter(IPC::MessageFilter* filter) = 0; | 99 virtual void AddFilter(IPC::MessageFilter* filter) = 0; |
| 100 | 100 |
| 101 // Returns the shell::InterfaceProvider the process host can use to bind | 101 // Returns the service_manager::InterfaceProvider the process host can use to |
| 102 // bind |
| 102 // interfaces exposed to it from the child. | 103 // interfaces exposed to it from the child. |
| 103 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; | 104 virtual service_manager::InterfaceProvider* GetRemoteInterfaces() = 0; |
| 104 | 105 |
| 105 #if defined(OS_POSIX) | 106 #if defined(OS_POSIX) |
| 106 // See IPC::Channel::TakeClientFileDescriptor. | 107 // See IPC::Channel::TakeClientFileDescriptor. |
| 107 virtual base::ScopedFD TakeClientFileDescriptor() = 0; | 108 virtual base::ScopedFD TakeClientFileDescriptor() = 0; |
| 108 #endif | 109 #endif |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 }; // namespace content | 112 }; // namespace content |
| 112 | 113 |
| 113 #endif // CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_H_ | 114 #endif // CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_H_ |
| OLD | NEW |