Chromium Code Reviews| 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_ |