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_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ |
7 | 7 |
8 #include "base/environment.h" | 8 #include "base/environment.h" |
9 #include "base/process/kill.h" | 9 #include "base/process/kill.h" |
10 #include "base/process/process_handle.h" | 10 #include "base/process/process_handle.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 int process_type, | 39 int process_type, |
40 BrowserChildProcessHostDelegate* delegate); | 40 BrowserChildProcessHostDelegate* delegate); |
41 | 41 |
42 virtual ~BrowserChildProcessHost() {} | 42 virtual ~BrowserChildProcessHost() {} |
43 | 43 |
44 // Derived classes call this to launch the child process asynchronously. | 44 // Derived classes call this to launch the child process asynchronously. |
45 // Takes ownership of |cmd_line| and |delegate|. | 45 // Takes ownership of |cmd_line| and |delegate|. |
46 virtual void Launch( | 46 virtual void Launch( |
47 #if defined(OS_WIN) | 47 #if defined(OS_WIN) |
48 SandboxedProcessLauncherDelegate* delegate, | 48 SandboxedProcessLauncherDelegate* delegate, |
| 49 bool run_elevated, |
49 #elif defined(OS_POSIX) | 50 #elif defined(OS_POSIX) |
50 bool use_zygote, | 51 bool use_zygote, |
51 const base::EnvironmentMap& environ, | 52 const base::EnvironmentMap& environ, |
52 #endif | 53 #endif |
53 CommandLine* cmd_line) = 0; | 54 CommandLine* cmd_line) = 0; |
54 | 55 |
55 virtual const ChildProcessData& GetData() const = 0; | 56 virtual const ChildProcessData& GetData() const = 0; |
56 | 57 |
57 // Returns the ChildProcessHost object used by this object. | 58 // Returns the ChildProcessHost object used by this object. |
58 virtual ChildProcessHost* GetHost() const = 0; | 59 virtual ChildProcessHost* GetHost() const = 0; |
(...skipping 23 matching lines...) Expand all Loading... |
82 | 83 |
83 #if defined(OS_MACOSX) && !defined(OS_IOS) | 84 #if defined(OS_MACOSX) && !defined(OS_IOS) |
84 // Returns a PortProvider used to get process metrics for child processes. | 85 // Returns a PortProvider used to get process metrics for child processes. |
85 static base::ProcessMetrics::PortProvider* GetPortProvider(); | 86 static base::ProcessMetrics::PortProvider* GetPortProvider(); |
86 #endif | 87 #endif |
87 }; | 88 }; |
88 | 89 |
89 }; // namespace content | 90 }; // namespace content |
90 | 91 |
91 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ | 92 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ |
OLD | NEW |