| 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 25 matching lines...) Expand all Loading... |
| 36 BrowserChildProcessHostDelegate* delegate); | 36 BrowserChildProcessHostDelegate* delegate); |
| 37 virtual ~BrowserChildProcessHostImpl(); | 37 virtual ~BrowserChildProcessHostImpl(); |
| 38 | 38 |
| 39 // Terminates all child processes and deletes each BrowserChildProcessHost | 39 // Terminates all child processes and deletes each BrowserChildProcessHost |
| 40 // instance. | 40 // instance. |
| 41 static void TerminateAll(); | 41 static void TerminateAll(); |
| 42 | 42 |
| 43 // BrowserChildProcessHost implementation: | 43 // BrowserChildProcessHost implementation: |
| 44 virtual bool Send(IPC::Message* message) OVERRIDE; | 44 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 45 virtual void Launch( | 45 virtual void Launch( |
| 46 #if defined(OS_WIN) | |
| 47 SandboxedProcessLauncherDelegate* delegate, | 46 SandboxedProcessLauncherDelegate* delegate, |
| 48 bool launch_elevated, | |
| 49 #elif defined(OS_POSIX) | |
| 50 bool use_zygote, | |
| 51 const base::EnvironmentMap& environ, | |
| 52 #endif | |
| 53 CommandLine* cmd_line) OVERRIDE; | 47 CommandLine* cmd_line) OVERRIDE; |
| 54 virtual const ChildProcessData& GetData() const OVERRIDE; | 48 virtual const ChildProcessData& GetData() const OVERRIDE; |
| 55 virtual ChildProcessHost* GetHost() const OVERRIDE; | 49 virtual ChildProcessHost* GetHost() const OVERRIDE; |
| 56 virtual base::TerminationStatus GetTerminationStatus( | 50 virtual base::TerminationStatus GetTerminationStatus( |
| 57 bool known_dead, int* exit_code) OVERRIDE; | 51 bool known_dead, int* exit_code) OVERRIDE; |
| 58 virtual void SetNaClDebugStubPort(int port) OVERRIDE; | 52 virtual void SetNaClDebugStubPort(int port) OVERRIDE; |
| 59 virtual void SetName(const base::string16& name) OVERRIDE; | 53 virtual void SetName(const base::string16& name) OVERRIDE; |
| 60 virtual void SetHandle(base::ProcessHandle handle) OVERRIDE; | 54 virtual void SetHandle(base::ProcessHandle handle) OVERRIDE; |
| 61 | 55 |
| 62 // ChildProcessHostDelegate implementation: | 56 // ChildProcessHostDelegate implementation: |
| (...skipping 53 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 | 110 // 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 | 111 // been connected. Thereafter, its exit is determined by an error on the |
| 118 // IPC channel. | 112 // IPC channel. |
| 119 base::WaitableEventWatcher early_exit_watcher_; | 113 base::WaitableEventWatcher early_exit_watcher_; |
| 120 #endif | 114 #endif |
| 121 }; | 115 }; |
| 122 | 116 |
| 123 } // namespace content | 117 } // namespace content |
| 124 | 118 |
| 125 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 119 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |