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

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: CR feedback. 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 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_;
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.
46
47 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessDelegate);
48 };
49
50 } // namespace remoting
51
52 #endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698