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

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

Issue 11118005: Pass the client end handle of the network-to-daemon IPC channel via handle inheritance. (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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ 5 #ifndef REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_
6 #define REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ 6 #define REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "remoting/host/win/worker_process_launcher.h" 11 #include "remoting/host/win/worker_process_launcher.h"
12 12
13 class FilePath; 13 class FilePath;
14 14
15 namespace base { 15 namespace base {
16 class SingleThreadTaskRunner; 16 class SingleThreadTaskRunner;
17 } // namespace base 17 } // namespace base
18 18
19 namespace IPC {
20 class Listener;
21 class Message;
22 } // namespace base
23
19 namespace remoting { 24 namespace remoting {
20 25
21 // Implements logic for launching and monitoring a worker process in a different 26 // Implements logic for launching and monitoring a worker process in a different
22 // session. 27 // session.
23 class WtsSessionProcessDelegate 28 class WtsSessionProcessDelegate
24 : public WorkerProcessLauncher::Delegate { 29 : public WorkerProcessLauncher::Delegate {
25 public: 30 public:
26 WtsSessionProcessDelegate( 31 WtsSessionProcessDelegate(
27 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 32 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
28 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, 33 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
29 const FilePath& binary_path, 34 const FilePath& binary_path,
30 uint32 session_id, 35 uint32 session_id,
31 bool launch_elevated); 36 bool launch_elevated,
37 const std::string& channel_security);
32 ~WtsSessionProcessDelegate(); 38 ~WtsSessionProcessDelegate();
33 39
40 // IPC::Sender implementation.
41 virtual bool Send(IPC::Message* message) OVERRIDE;
42
34 // WorkerProcessLauncher::Delegate implementation. 43 // WorkerProcessLauncher::Delegate implementation.
35 virtual DWORD GetExitCode() OVERRIDE; 44 virtual DWORD GetExitCode() OVERRIDE;
36 virtual void KillProcess(DWORD exit_code) OVERRIDE; 45 virtual void KillProcess(DWORD exit_code) OVERRIDE;
37 virtual bool LaunchProcess( 46 virtual bool LaunchProcess(
38 const std::string& channel_name, 47 IPC::Listener* delegate,
39 base::win::ScopedHandle* process_exit_event_out) OVERRIDE; 48 base::win::ScopedHandle* process_exit_event_out) OVERRIDE;
40 49
41 private: 50 private:
42 // The actual implementation resides in WtsSessionProcessDelegate::Core class. 51 // The actual implementation resides in WtsSessionProcessDelegate::Core class.
43 class Core; 52 class Core;
44 scoped_refptr<Core> core_; 53 scoped_refptr<Core> core_;
45 54
46 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessDelegate); 55 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessDelegate);
47 }; 56 };
48 57
49 } // namespace remoting 58 } // namespace remoting
50 59
51 #endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ 60 #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