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

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

Issue 98603007: Launches a privileged utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds the elevation flag to the utility process. Created 6 years, 10 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 28 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « content/common/child_process_host_impl.cc ('k') | content/public/browser/browser_child_process_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698