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

Unified Diff: content/browser/child_process_launcher_elevated.h

Issue 98603007: Launches a privileged utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds missing child_process_launcher files. 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/child_process_launcher_elevated.h
diff --git a/content/browser/child_process_launcher_elevated.h b/content/browser/child_process_launcher_elevated.h
new file mode 100644
index 0000000000000000000000000000000000000000..f6990fec4779483070f866011bcf803d2a14eab5
--- /dev/null
+++ b/content/browser/child_process_launcher_elevated.h
@@ -0,0 +1,48 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
mef 2013/12/18 21:02:10 nit: 2013
+// 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 "base/basictypes.h"
+#include "base/memory/ref_counted.h"
+#include "base/process/kill.h"
mef 2013/12/18 21:02:10 is kill.h needed?
Drew Haven 2014/01/09 01:15:14 In fact, most of these aren't needed.
+#include "base/process/launch.h"
+#include "content/browser/child_process_launcher.h"
+#include "content/common/content_export.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;
mef 2013/12/18 21:02:10 nit: tab
+ 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