| OLD | NEW |
| 1 // Copyright (c) 2011 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 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "ipc/ipc_channel_proxy.h" | 11 #include "ipc/ipc_channel_proxy.h" |
| 12 | 12 |
| 13 class FilePath; | 13 class FilePath; |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 class ChildProcessHostDelegate; | 17 class ChildProcessHostDelegate; |
| 18 | 18 |
| 19 // This represents a non-browser process. This can include traditional child | 19 // This represents a non-browser process. This can include traditional child |
| 20 // processes like plugins, or an embedder could even use this for long lived | 20 // processes like plugins, or an embedder could even use this for long lived |
| 21 // processes that run independent of the browser process. | 21 // processes that run independent of the browser process. |
| 22 class CONTENT_EXPORT ChildProcessHost : public IPC::Message::Sender { | 22 class CONTENT_EXPORT ChildProcessHost : public IPC::Sender { |
| 23 public: | 23 public: |
| 24 virtual ~ChildProcessHost() {} | 24 virtual ~ChildProcessHost() {} |
| 25 | 25 |
| 26 // Used to create a child process host. The delegate must outlive this object. | 26 // Used to create a child process host. The delegate must outlive this object. |
| 27 static ChildProcessHost* Create( | 27 static ChildProcessHost* Create( |
| 28 ChildProcessHostDelegate* delegate); | 28 ChildProcessHostDelegate* delegate); |
| 29 | 29 |
| 30 // These flags may be passed to GetChildPath in order to alter its behavior, | 30 // These flags may be passed to GetChildPath in order to alter its behavior, |
| 31 // causing it to return a child path more suited to a specific task. | 31 // causing it to return a child path more suited to a specific task. |
| 32 enum { | 32 enum { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 #if defined(OS_POSIX) | 91 #if defined(OS_POSIX) |
| 92 // See IPC::Channel::TakeClientFileDescriptor. | 92 // See IPC::Channel::TakeClientFileDescriptor. |
| 93 virtual int TakeClientFileDescriptor() = 0; | 93 virtual int TakeClientFileDescriptor() = 0; |
| 94 #endif | 94 #endif |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 }; // namespace content | 97 }; // namespace content |
| 98 | 98 |
| 99 #endif // CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ | 99 #endif // CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ |
| OLD | NEW |