| OLD | NEW |
| 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 // This file implements the Windows service controlling Me2Me host processes | 5 // This file implements the Windows service controlling Me2Me host processes |
| 6 // running within user sessions. | 6 // running within user sessions. |
| 7 | 7 |
| 8 #include "remoting/host/wts_session_process_launcher_win.h" | 8 #include "remoting/host/wts_session_process_launcher_win.h" |
| 9 | 9 |
| 10 #include <windows.h> | 10 #include <windows.h> |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 207 |
| 208 *channel_name_out = channel_name; | 208 *channel_name_out = channel_name; |
| 209 pipe_out->Set(pipe); | 209 pipe_out->Set(pipe); |
| 210 return true; | 210 return true; |
| 211 } | 211 } |
| 212 | 212 |
| 213 } // namespace | 213 } // namespace |
| 214 | 214 |
| 215 namespace remoting { | 215 namespace remoting { |
| 216 | 216 |
| 217 // Session id that does not represent any session. | |
| 218 const uint32 kInvalidSessionId = 0xffffffff; | |
| 219 | |
| 220 WtsSessionProcessLauncher::WtsSessionProcessLauncher( | 217 WtsSessionProcessLauncher::WtsSessionProcessLauncher( |
| 221 const Shutdownable::Callback& done, | 218 const Shutdownable::Callback& done, |
| 222 WtsConsoleMonitor* monitor, | 219 WtsConsoleMonitor* monitor, |
| 223 scoped_refptr<base::SingleThreadTaskRunner> main_message_loop, | 220 scoped_refptr<base::SingleThreadTaskRunner> main_message_loop, |
| 224 scoped_refptr<base::SingleThreadTaskRunner> ipc_message_loop) | 221 scoped_refptr<base::SingleThreadTaskRunner> ipc_message_loop) |
| 225 : Shutdownable(main_message_loop, done), | 222 : Shutdownable(main_message_loop, done), |
| 226 main_message_loop_(main_message_loop), | 223 main_message_loop_(main_message_loop), |
| 227 ipc_message_loop_(ipc_message_loop), | 224 ipc_message_loop_(ipc_message_loop), |
| 228 monitor_(monitor), | 225 monitor_(monitor), |
| 229 state_(StateDetached) { | 226 state_(StateDetached) { |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 | 478 |
| 482 void WtsSessionProcessLauncher::DoShutdown() { | 479 void WtsSessionProcessLauncher::DoShutdown() { |
| 483 if (state_ != StateDetached) { | 480 if (state_ != StateDetached) { |
| 484 OnSessionDetached(); | 481 OnSessionDetached(); |
| 485 } | 482 } |
| 486 | 483 |
| 487 CompleteShutdown(); | 484 CompleteShutdown(); |
| 488 } | 485 } |
| 489 | 486 |
| 490 } // namespace remoting | 487 } // namespace remoting |
| OLD | NEW |