| 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 28 matching lines...) Expand all Loading... |
| 39 // instance. | 39 // instance. |
| 40 static void TerminateAll(); | 40 static void TerminateAll(); |
| 41 | 41 |
| 42 // BrowserChildProcessHost implementation: | 42 // BrowserChildProcessHost implementation: |
| 43 virtual bool Send(IPC::Message* message) OVERRIDE; | 43 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 44 virtual void Launch( | 44 virtual void Launch( |
| 45 #if defined(OS_WIN) | 45 #if defined(OS_WIN) |
| 46 SandboxedProcessLauncherDelegate* delegate, | 46 SandboxedProcessLauncherDelegate* delegate, |
| 47 #elif defined(OS_POSIX) | 47 #elif defined(OS_POSIX) |
| 48 bool use_zygote, | 48 bool use_zygote, |
| 49 const base::EnvironmentVector& environ, | 49 const base::EnvironmentMap& environ, |
| 50 #endif | 50 #endif |
| 51 CommandLine* cmd_line) OVERRIDE; | 51 CommandLine* cmd_line) OVERRIDE; |
| 52 virtual const ChildProcessData& GetData() const OVERRIDE; | 52 virtual const ChildProcessData& GetData() const OVERRIDE; |
| 53 virtual ChildProcessHost* GetHost() const OVERRIDE; | 53 virtual ChildProcessHost* GetHost() const OVERRIDE; |
| 54 virtual base::TerminationStatus GetTerminationStatus(int* exit_code) OVERRIDE; | 54 virtual base::TerminationStatus GetTerminationStatus(int* exit_code) OVERRIDE; |
| 55 virtual void SetName(const string16& name) OVERRIDE; | 55 virtual void SetName(const string16& name) OVERRIDE; |
| 56 virtual void SetHandle(base::ProcessHandle handle) OVERRIDE; | 56 virtual void SetHandle(base::ProcessHandle handle) OVERRIDE; |
| 57 | 57 |
| 58 // Returns the handle of the child process. This can be called only after | 58 // Returns the handle of the child process. This can be called only after |
| 59 // OnProcessLaunched is called or it will be invalid and may crash. | 59 // OnProcessLaunched is called or it will be invalid and may crash. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // Watches to see if the child process exits before the IPC channel has | 111 // Watches to see if the child process exits before the IPC channel has |
| 112 // been connected. Thereafter, its exit is determined by an error on the | 112 // been connected. Thereafter, its exit is determined by an error on the |
| 113 // IPC channel. | 113 // IPC channel. |
| 114 base::WaitableEventWatcher early_exit_watcher_; | 114 base::WaitableEventWatcher early_exit_watcher_; |
| 115 #endif | 115 #endif |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 } // namespace content | 118 } // namespace content |
| 119 | 119 |
| 120 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 120 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |