| 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_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 SandboxedProcessLauncherDelegate* delegate, | 47 SandboxedProcessLauncherDelegate* delegate, |
| 48 #elif defined(OS_POSIX) | 48 #elif defined(OS_POSIX) |
| 49 bool use_zygote, | 49 bool use_zygote, |
| 50 const base::EnvironmentMap& environ, | 50 const base::EnvironmentMap& environ, |
| 51 #endif | 51 #endif |
| 52 CommandLine* cmd_line) OVERRIDE; | 52 CommandLine* cmd_line) OVERRIDE; |
| 53 virtual const ChildProcessData& GetData() const OVERRIDE; | 53 virtual const ChildProcessData& GetData() const OVERRIDE; |
| 54 virtual ChildProcessHost* GetHost() const OVERRIDE; | 54 virtual ChildProcessHost* GetHost() const OVERRIDE; |
| 55 virtual base::TerminationStatus GetTerminationStatus( | 55 virtual base::TerminationStatus GetTerminationStatus( |
| 56 bool known_dead, int* exit_code) OVERRIDE; | 56 bool known_dead, int* exit_code) OVERRIDE; |
| 57 virtual void SetNaClDebugStubPort(int port) OVERRIDE; |
| 57 virtual void SetName(const base::string16& name) OVERRIDE; | 58 virtual void SetName(const base::string16& name) OVERRIDE; |
| 58 virtual void SetHandle(base::ProcessHandle handle) OVERRIDE; | 59 virtual void SetHandle(base::ProcessHandle handle) OVERRIDE; |
| 59 | 60 |
| 60 // Returns the handle of the child process. This can be called only after | 61 // Returns the handle of the child process. This can be called only after |
| 61 // OnProcessLaunched is called or it will be invalid and may crash. | 62 // OnProcessLaunched is called or it will be invalid and may crash. |
| 62 base::ProcessHandle GetHandle() const; | 63 base::ProcessHandle GetHandle() const; |
| 63 | 64 |
| 64 // Removes this host from the host list. Calls ChildProcessHost::ForceShutdown | 65 // Removes this host from the host list. Calls ChildProcessHost::ForceShutdown |
| 65 void ForceShutdown(); | 66 void ForceShutdown(); |
| 66 | 67 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // Watches to see if the child process exits before the IPC channel has | 117 // Watches to see if the child process exits before the IPC channel has |
| 117 // been connected. Thereafter, its exit is determined by an error on the | 118 // been connected. Thereafter, its exit is determined by an error on the |
| 118 // IPC channel. | 119 // IPC channel. |
| 119 base::WaitableEventWatcher early_exit_watcher_; | 120 base::WaitableEventWatcher early_exit_watcher_; |
| 120 #endif | 121 #endif |
| 121 }; | 122 }; |
| 122 | 123 |
| 123 } // namespace content | 124 } // namespace content |
| 124 | 125 |
| 125 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 126 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |