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

Side by Side Diff: remoting/host/wts_session_process_launcher_win.h

Issue 10698057: Remove Message::Sender and Channel::Listener typedefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « remoting/host/session_event_executor_win.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_WTS_SESSION_PROCESS_LAUNCHER_WIN_H_ 5 #ifndef REMOTING_HOST_WTS_SESSION_PROCESS_LAUNCHER_WIN_H_
6 #define REMOTING_HOST_WTS_SESSION_PROCESS_LAUNCHER_WIN_H_ 6 #define REMOTING_HOST_WTS_SESSION_PROCESS_LAUNCHER_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 22 matching lines...) Expand all
33 namespace remoting { 33 namespace remoting {
34 34
35 // Session id that does not represent any session. 35 // Session id that does not represent any session.
36 extern const uint32 kInvalidSessionId; 36 extern const uint32 kInvalidSessionId;
37 37
38 class SasInjector; 38 class SasInjector;
39 class WtsConsoleMonitor; 39 class WtsConsoleMonitor;
40 40
41 class WtsSessionProcessLauncher 41 class WtsSessionProcessLauncher
42 : public base::win::ObjectWatcher::Delegate, 42 : public base::win::ObjectWatcher::Delegate,
43 public IPC::Channel::Listener, 43 public IPC::Listener,
44 public WtsConsoleObserver { 44 public WtsConsoleObserver {
45 public: 45 public:
46 // Constructs a WtsSessionProcessLauncher object. |host_binary| is the name of 46 // Constructs a WtsSessionProcessLauncher object. |host_binary| is the name of
47 // the executable to be launched in the console session. All interaction with 47 // the executable to be launched in the console session. All interaction with
48 // |monitor| should happen on |main_message_loop|. |ipc_message_loop| has 48 // |monitor| should happen on |main_message_loop|. |ipc_message_loop| has
49 // to be an I/O message loop. 49 // to be an I/O message loop.
50 WtsSessionProcessLauncher( 50 WtsSessionProcessLauncher(
51 WtsConsoleMonitor* monitor, 51 WtsConsoleMonitor* monitor,
52 const FilePath& host_binary, 52 const FilePath& host_binary,
53 scoped_refptr<base::MessageLoopProxy> main_message_loop, 53 scoped_refptr<base::MessageLoopProxy> main_message_loop,
54 scoped_refptr<base::MessageLoopProxy> ipc_message_loop); 54 scoped_refptr<base::MessageLoopProxy> ipc_message_loop);
55 55
56 virtual ~WtsSessionProcessLauncher(); 56 virtual ~WtsSessionProcessLauncher();
57 57
58 // base::win::ObjectWatcher::Delegate implementation. 58 // base::win::ObjectWatcher::Delegate implementation.
59 virtual void OnObjectSignaled(HANDLE object) OVERRIDE; 59 virtual void OnObjectSignaled(HANDLE object) OVERRIDE;
60 60
61 // IPC::Channel::Listener implementation. 61 // IPC::Listener implementation.
62 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 62 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
63 63
64 // WtsConsoleObserver implementation. 64 // WtsConsoleObserver implementation.
65 virtual void OnSessionAttached(uint32 session_id) OVERRIDE; 65 virtual void OnSessionAttached(uint32 session_id) OVERRIDE;
66 virtual void OnSessionDetached() OVERRIDE; 66 virtual void OnSessionDetached() OVERRIDE;
67 67
68 private: 68 private:
69 // Attempts to launch the host process in the current console session. 69 // Attempts to launch the host process in the current console session.
70 // Schedules next launch attempt if creation of the process fails for any 70 // Schedules next launch attempt if creation of the process fails for any
71 // reason. 71 // reason.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 scoped_ptr<IPC::ChannelProxy> chromoting_channel_; 123 scoped_ptr<IPC::ChannelProxy> chromoting_channel_;
124 124
125 scoped_ptr<SasInjector> sas_injector_; 125 scoped_ptr<SasInjector> sas_injector_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessLauncher); 127 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessLauncher);
128 }; 128 };
129 129
130 } // namespace remoting 130 } // namespace remoting
131 131
132 #endif // REMOTING_HOST_WTS_SESSION_PROCESS_LAUNCHER_WIN_H_ 132 #endif // REMOTING_HOST_WTS_SESSION_PROCESS_LAUNCHER_WIN_H_
OLDNEW
« no previous file with comments | « remoting/host/session_event_executor_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698