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

Side by Side Diff: content/browser/child_process_launcher.h

Issue 98603007: Launches a privileged utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually works now. Removes unnecessary logging. Created 7 years 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_BROWSER_CHILD_PROCESS_LAUNCHER_H_ 5 #ifndef CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_
6 #define CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ 6 #define CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/process/kill.h" 10 #include "base/process/kill.h"
(...skipping 29 matching lines...) Expand all
40 #if defined(OS_WIN) 40 #if defined(OS_WIN)
41 SandboxedProcessLauncherDelegate* delegate, 41 SandboxedProcessLauncherDelegate* delegate,
42 #elif defined(OS_POSIX) 42 #elif defined(OS_POSIX)
43 bool use_zygote, 43 bool use_zygote,
44 const base::EnvironmentMap& environ, 44 const base::EnvironmentMap& environ,
45 int ipcfd, 45 int ipcfd,
46 #endif 46 #endif
47 CommandLine* cmd_line, 47 CommandLine* cmd_line,
48 int child_process_id, 48 int child_process_id,
49 Client* client); 49 Client* client);
50 #if defined(OS_WIN)
51 ChildProcessLauncher(
52 SandboxedProcessLauncherDelegate* delegate,
53 bool elevate,
54 CommandLine* cmd_line,
55 int child_process_id,
56 Client* client);
57 #endif
50 ~ChildProcessLauncher(); 58 ~ChildProcessLauncher();
51 59
52 // True if the process is being launched and so the handle isn't available. 60 // True if the process is being launched and so the handle isn't available.
53 bool IsStarting(); 61 bool IsStarting();
54 62
55 // Getter for the process handle. Only call after the process has started. 63 // Getter for the process handle. Only call after the process has started.
56 base::ProcessHandle GetHandle(); 64 base::ProcessHandle GetHandle();
57 65
58 // Call this when the child process exits to know what happened to it. 66 // Call this when the child process exits to know what happened to it.
59 // |known_dead| can be true if we already know the process is dead as it can 67 // |known_dead| can be true if we already know the process is dead as it can
(...skipping 21 matching lines...) Expand all
81 class Context; 89 class Context;
82 90
83 scoped_refptr<Context> context_; 91 scoped_refptr<Context> context_;
84 92
85 DISALLOW_COPY_AND_ASSIGN(ChildProcessLauncher); 93 DISALLOW_COPY_AND_ASSIGN(ChildProcessLauncher);
86 }; 94 };
87 95
88 } // namespace content 96 } // namespace content
89 97
90 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ 98 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698