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

Side by Side Diff: remoting/host/win/wts_session_process_delegate.h

Issue 11040065: [Chromoting] Reimplemented the worker process launcher to take into account the encountered issues: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 2 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 // Implements logic for launching and monitoring a worker process in a different
22 // session.
23 class WtsSessionProcessDelegate
24 : public WorkerProcessLauncher::Delegate {
25 public:
26 WtsSessionProcessDelegate(
27 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
28 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
29 const FilePath& binary_path,
30 uint32 session_id,
31 bool launch_elevated);
32 ~WtsSessionProcessDelegate();
33
34 // WorkerProcessLauncher::Delegate implementation.
35 virtual DWORD GetExitCode() OVERRIDE;
36 virtual void KillProcess(DWORD exit_code) OVERRIDE;
37 virtual bool LaunchProcess(
38 const std::string& channel_name,
39 base::win::ScopedHandle* process_exit_event_out) OVERRIDE;
40
41 private:
42 // The actual implementation resides in WtsSessionProcessDelegate::Core class.
43 class Core;
44 scoped_refptr<Core> core_;
45
46 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessDelegate);
47 };
48
49 } // namespace remoting
50
51 #endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_
OLDNEW
« no previous file with comments | « remoting/host/win/wts_console_session_process_driver.cc ('k') | remoting/host/win/wts_session_process_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698