Chromium Code Reviews| Index: remoting/host/wts_session_process_launcher_win.h |
| diff --git a/remoting/host/wts_session_process_launcher_win.h b/remoting/host/wts_session_process_launcher_win.h |
| index efcb93a75d01f1b72eeefb70304ec2c0b6e71577..668613873581281cc540090fbdaf06c6f6c37cdd 100644 |
| --- a/remoting/host/wts_session_process_launcher_win.h |
| +++ b/remoting/host/wts_session_process_launcher_win.h |
| @@ -10,6 +10,8 @@ |
| #include "base/basictypes.h" |
| #include "base/file_path.h" |
| #include "base/compiler_specific.h" |
| +#include "base/memory/ref_counted.h" |
| +#include "base/memory/scoped_ptr.h" |
| #include "base/process.h" |
| #include "base/time.h" |
| #include "base/timer.h" |
| @@ -20,16 +22,12 @@ |
| #include "remoting/host/wts_console_observer_win.h" |
| namespace base { |
| - |
| -class Thread; |
| - |
| +class MessageLoopProxy; |
| } // namespace base |
| namespace IPC { |
| - |
| class ChannelProxy; |
| class Message; |
| - |
| } // namespace IPC |
| namespace remoting { |
| @@ -45,9 +43,11 @@ class WtsSessionProcessLauncher |
| // Constructs a WtsSessionProcessLauncher object. |monitor| and |io_thread| |
| // must outlive this object. |host_binary| is the name of the executable to |
| // be launched in the console session. |
|
Wez
2012/04/10 21:26:20
nit: Update this comment.
alexeypa (please no reviews)
2012/04/10 22:18:16
Done.
|
| - WtsSessionProcessLauncher(WtsConsoleMonitor* monitor, |
| - const FilePath& host_binary, |
| - base::Thread* io_thread); |
| + WtsSessionProcessLauncher( |
| + WtsConsoleMonitor* monitor, |
| + const FilePath& host_binary, |
| + scoped_refptr<base::MessageLoopProxy> main_message_loop, |
| + scoped_refptr<base::MessageLoopProxy> ipc_message_loop); |
| virtual ~WtsSessionProcessLauncher(); |
| @@ -83,9 +83,11 @@ class WtsSessionProcessLauncher |
| // Timer used to schedule the next attempt to launch the process. |
| base::OneShotTimer<WtsSessionProcessLauncher> timer_; |
| - // The I/O thread hosts the Chromoting IPC channel and any other code |
| - // requiring an I/O message loop. |
| - base::Thread* io_thread_; |
| + // The main service message loop. |
| + scoped_refptr<base::MessageLoopProxy> main_message_loop_; |
| + |
| + // Message loop used by the IPC channel. |
| + scoped_refptr<base::MessageLoopProxy> ipc_message_loop_; |
| // This pointer is used to unsubscribe from session attach and detach events. |
| WtsConsoleMonitor* monitor_; |