OLD | NEW |
(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_ |
OLD | NEW |