| 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 24 matching lines...) Expand all Loading... |
| 35 virtual ~BrowserChildProcessHostImpl(); | 35 virtual ~BrowserChildProcessHostImpl(); |
| 36 | 36 |
| 37 // Terminates all child processes and deletes each BrowserChildProcessHost | 37 // Terminates all child processes and deletes each BrowserChildProcessHost |
| 38 // instance. | 38 // instance. |
| 39 static void TerminateAll(); | 39 static void TerminateAll(); |
| 40 | 40 |
| 41 // BrowserChildProcessHost implementation: | 41 // BrowserChildProcessHost implementation: |
| 42 virtual bool Send(IPC::Message* message) OVERRIDE; | 42 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 43 virtual void Launch( | 43 virtual void Launch( |
| 44 #if defined(OS_WIN) | 44 #if defined(OS_WIN) |
| 45 const base::FilePath& exposed_dir, | 45 SandboxedProcessLauncherDelegate* delegate, |
| 46 #elif defined(OS_POSIX) | 46 #elif defined(OS_POSIX) |
| 47 bool use_zygote, | 47 bool use_zygote, |
| 48 const base::EnvironmentVector& environ, | 48 const base::EnvironmentVector& environ, |
| 49 #endif | 49 #endif |
| 50 CommandLine* cmd_line) OVERRIDE; | 50 CommandLine* cmd_line) OVERRIDE; |
| 51 virtual const ChildProcessData& GetData() const OVERRIDE; | 51 virtual const ChildProcessData& GetData() const OVERRIDE; |
| 52 virtual ChildProcessHost* GetHost() const OVERRIDE; | 52 virtual ChildProcessHost* GetHost() const OVERRIDE; |
| 53 virtual base::TerminationStatus GetTerminationStatus(int* exit_code) OVERRIDE; | 53 virtual base::TerminationStatus GetTerminationStatus(int* exit_code) OVERRIDE; |
| 54 virtual void SetName(const string16& name) OVERRIDE; | 54 virtual void SetName(const string16& name) OVERRIDE; |
| 55 virtual void SetHandle(base::ProcessHandle handle) OVERRIDE; | 55 virtual void SetHandle(base::ProcessHandle handle) OVERRIDE; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // Watches to see if the child process exits before the IPC channel has | 105 // Watches to see if the child process exits before the IPC channel has |
| 106 // been connected. Thereafter, its exit is determined by an error on the | 106 // been connected. Thereafter, its exit is determined by an error on the |
| 107 // IPC channel. | 107 // IPC channel. |
| 108 base::WaitableEventWatcher early_exit_watcher_; | 108 base::WaitableEventWatcher early_exit_watcher_; |
| 109 #endif | 109 #endif |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 } // namespace content | 112 } // namespace content |
| 113 | 113 |
| 114 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 114 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |