Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Side by Side Diff: content/public/browser/browser_child_process_host.h

Issue 177863002: Refactor configuration of sandboxes - first steps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix remaining nits and rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 26 matching lines...) Expand all
37 // embedder-defined value. 37 // embedder-defined value.
38 static BrowserChildProcessHost* Create( 38 static BrowserChildProcessHost* Create(
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)
48 SandboxedProcessLauncherDelegate* delegate, 47 SandboxedProcessLauncherDelegate* delegate,
49 bool run_elevated,
50 #elif defined(OS_POSIX)
51 bool use_zygote,
52 const base::EnvironmentMap& environ,
53 #endif
54 CommandLine* cmd_line) = 0; 48 CommandLine* cmd_line) = 0;
55 49
56 virtual const ChildProcessData& GetData() const = 0; 50 virtual const ChildProcessData& GetData() const = 0;
57 51
58 // Returns the ChildProcessHost object used by this object. 52 // Returns the ChildProcessHost object used by this object.
59 virtual ChildProcessHost* GetHost() const = 0; 53 virtual ChildProcessHost* GetHost() const = 0;
60 54
61 // Returns the termination status of a child. |exit_code| is the 55 // Returns the termination status of a child. |exit_code| is the
62 // status returned when the process exited (for posix, as returned 56 // status returned when the process exited (for posix, as returned
63 // from waitpid(), for Windows, as returned from 57 // from waitpid(), for Windows, as returned from
(...skipping 19 matching lines...) Expand all
83 77
84 #if defined(OS_MACOSX) && !defined(OS_IOS) 78 #if defined(OS_MACOSX) && !defined(OS_IOS)
85 // Returns a PortProvider used to get process metrics for child processes. 79 // Returns a PortProvider used to get process metrics for child processes.
86 static base::ProcessMetrics::PortProvider* GetPortProvider(); 80 static base::ProcessMetrics::PortProvider* GetPortProvider();
87 #endif 81 #endif
88 }; 82 };
89 83
90 }; // namespace content 84 }; // namespace content
91 85
92 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ 86 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/sandboxed_process_launcher_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698