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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/child_process_launcher_elevated_win.h
diff --git a/content/browser/child_process_launcher_elevated_win.h b/content/browser/child_process_launcher_elevated_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..7a5ab9ca708b13455a9d1f53a2a81f6a8d76bc41
--- /dev/null
+++ b/content/browser/child_process_launcher_elevated_win.h
@@ -0,0 +1,45 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_ELEVATED_H_
+#define CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_ELEVATED_H_
+
+#include "content/browser/child_process_launcher.h"
+
+class CommandLine;
+
+namespace content {
+class SandboxedProcessLauncherDelegate;
+
+// Asynchronously launches an elevated process.
+class CONTENT_EXPORT ChildProcessLauncherElevated
+ : public ChildProcessLauncher {
+ public:
+ ChildProcessLauncherElevated(
+ CommandLine* cmd_line,
+ int child_process_id,
+ Client* client);
+
+ ~ChildProcessLauncherElevated();
+
+ // ChildProcessLauncher Implementation:
+ virtual bool IsStarting() OVERRIDE;
+ virtual base::ProcessHandle GetHandle() OVERRIDE;
+ virtual base::TerminationStatus GetChildTerminationStatus(
+ bool known_dead,
+ int* exit_code) OVERRIDE;
+ virtual void SetProcessBackgrounded(bool background) OVERRIDE;
+ virtual void SetTerminateChildOnShutdown(bool terminate_on_shutdown) OVERRIDE;
+
+ private:
+ class Context;
+
+ scoped_refptr<Context> context_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChildProcessLauncherElevated);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_ELEVATED_H_

Powered by Google App Engine
This is Rietveld 408576698