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( | 54 virtual base::TerminationStatus GetTerminationStatus( |
55 bool known_dead, int* exit_code) OVERRIDE; | 55 bool known_dead, int* exit_code) OVERRIDE; |
56 virtual void SetName(const string16& name) OVERRIDE; | 56 virtual void SetName(const string16& name) OVERRIDE; |
57 virtual void SetHandle(base::ProcessHandle handle) OVERRIDE; | 57 virtual void SetHandle(base::ProcessHandle handle) OVERRIDE; |
58 | 58 |
59 // Returns the handle of the child process. This can be called only after | 59 // Returns the handle of the child process. This can be called only after |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // Watches to see if the child process exits before the IPC channel has | 112 // Watches to see if the child process exits before the IPC channel has |
113 // been connected. Thereafter, its exit is determined by an error on the | 113 // been connected. Thereafter, its exit is determined by an error on the |
114 // IPC channel. | 114 // IPC channel. |
115 base::WaitableEventWatcher early_exit_watcher_; | 115 base::WaitableEventWatcher early_exit_watcher_; |
116 #endif | 116 #endif |
117 }; | 117 }; |
118 | 118 |
119 } // namespace content | 119 } // namespace content |
120 | 120 |
121 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 121 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
OLD | NEW |