| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012 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 REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ |
| 6 #define REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" |
| 11 #include "remoting/host/win/worker_process_launcher.h" |
| 12 |
| 13 class FilePath; |
| 14 |
| 15 namespace base { |
| 16 class SingleThreadTaskRunner; |
| 17 } // namespace base |
| 18 |
| 19 namespace remoting { |
| 20 |
| 21 class WtsSessionProcessDelegateImpl; |
| 22 |
| 23 // Implements logic for launching and monitoring a worker process in a different |
| 24 // session. |
| 25 class WtsSessionProcessDelegate |
| 26 : public WorkerProcessLauncher::Delegate { |
| 27 public: |
| 28 WtsSessionProcessDelegate( |
| 29 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 30 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
| 31 const FilePath& binary_path, |
| 32 uint32 session_id, |
| 33 bool launch_elevated); |
| 34 ~WtsSessionProcessDelegate(); |
| 35 |
| 36 // WorkerProcessLauncher::Delegate implementation. |
| 37 virtual DWORD GetExitCode() OVERRIDE; |
| 38 virtual void KillProcess(DWORD exit_code) OVERRIDE; |
| 39 virtual bool LaunchProcess( |
| 40 const std::string& channel_name, |
| 41 base::win::ScopedHandle* process_exit_event_out) OVERRIDE; |
| 42 |
| 43 private: |
| 44 // The actual implementation resides in WtsSessionProcessDelegateImpl class. |
| 45 scoped_refptr<WtsSessionProcessDelegateImpl> impl_; |
| 46 |
| 47 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessDelegate); |
| 48 }; |
| 49 |
| 50 } // namespace remoting |
| 51 |
| 52 #endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ |
| OLD | NEW |