Chromium Code Reviews| Index: remoting/host/win/wts_session_process_delegate.h |
| diff --git a/remoting/host/win/wts_session_process_delegate.h b/remoting/host/win/wts_session_process_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..53d5bda01c0f48e9708b80adc9a0b98ba8084f3d |
| --- /dev/null |
| +++ b/remoting/host/win/wts_session_process_delegate.h |
| @@ -0,0 +1,52 @@ |
| +// Copyright (c) 2012 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 REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ |
| +#define REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/compiler_specific.h" |
| +#include "base/memory/ref_counted.h" |
| +#include "remoting/host/win/worker_process_launcher.h" |
| + |
| +class FilePath; |
| + |
| +namespace base { |
| +class SingleThreadTaskRunner; |
| +} // namespace base |
| + |
| +namespace remoting { |
| + |
| +class WtsSessionProcessDelegateImpl; |
| + |
| +// Implements logic for launching and monitoring a worker process in a different |
| +// session. |
| +class WtsSessionProcessDelegate |
| + : public WorkerProcessLauncher::Delegate { |
| + public: |
| + WtsSessionProcessDelegate( |
| + scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| + scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
| + const FilePath& binary_path, |
| + uint32 session_id, |
| + bool launch_elevated); |
| + ~WtsSessionProcessDelegate(); |
| + |
| + // WorkerProcessLauncher::Delegate implementation. |
| + virtual DWORD GetExitCode() OVERRIDE; |
| + virtual void KillProcess(DWORD exit_code) OVERRIDE; |
| + virtual bool LaunchProcess( |
| + const std::string& channel_name, |
| + base::win::ScopedHandle* process_exit_event_out) OVERRIDE; |
| + |
| + private: |
| + // The actual implementation resides in WtsSessionProcessDelegateImpl class. |
| + scoped_refptr<WtsSessionProcessDelegateImpl> impl_; |
|
Wez
2012/10/09 03:40:39
nit: Elsewhere we've called these Foo::Core; is th
alexeypa (please no reviews)
2012/10/09 19:42:04
Done.
|
| + |
| + DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessDelegate); |
| +}; |
| + |
| +} // namespace remoting |
| + |
| +#endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ |