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

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

Issue 98603007: Launches a privileged utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleans up edge cases and error handling. Fixes nits. Created 6 years, 11 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
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_ELEVATED_H_
6 #define CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_ELEVATED_H_
7
8 #include "content/browser/child_process_launcher.h"
9
10 class CommandLine;
11
12 namespace content {
13 class SandboxedProcessLauncherDelegate;
14
15 // Asynchronously launches an elevated process.
16 class CONTENT_EXPORT ChildProcessLauncherElevated
17 : public ChildProcessLauncher {
18 public:
19 ChildProcessLauncherElevated(
20 CommandLine* cmd_line,
21 int child_process_id,
22 Client* client);
23
24 ~ChildProcessLauncherElevated();
25
26 // ChildProcessLauncher Implementation:
27 virtual bool IsStarting() OVERRIDE;
28 virtual base::ProcessHandle GetHandle() OVERRIDE;
29 virtual base::TerminationStatus GetChildTerminationStatus(
30 bool known_dead,
31 int* exit_code) OVERRIDE;
32 virtual void SetProcessBackgrounded(bool background) OVERRIDE;
33 virtual void SetTerminateChildOnShutdown(bool terminate_on_shutdown) OVERRIDE;
34
35 private:
36 class Context;
37
38 scoped_refptr<Context> context_;
39
40 DISALLOW_COPY_AND_ASSIGN(ChildProcessLauncherElevated);
41 };
42
43 } // namespace content
44
45 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_ELEVATED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698