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

Side by Side Diff: remoting/host/win/wts_session_process_launcher.cc

Issue 10823062: Introducing the DaemonProcess class that will implements core of the daemon process functionality. … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 4 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/win/wts_session_process_launcher.h ('k') | remoting/remoting.gyp » ('j') | 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 // 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/win/wts_session_process_launcher.h" 8 #include "remoting/host/win/wts_session_process_launcher.h"
9 9
10 #include <windows.h> 10 #include <windows.h>
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 base::Closure& stopped_callback, 218 const base::Closure& stopped_callback,
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 : Stoppable(main_message_loop, stopped_callback), 222 : Stoppable(main_message_loop, stopped_callback),
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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 479
483 void WtsSessionProcessLauncher::DoStop() { 480 void WtsSessionProcessLauncher::DoStop() {
484 if (state_ != StateDetached) { 481 if (state_ != StateDetached) {
485 OnSessionDetached(); 482 OnSessionDetached();
486 } 483 }
487 484
488 CompleteStopping(); 485 CompleteStopping();
489 } 486 }
490 487
491 } // namespace remoting 488 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/win/wts_session_process_launcher.h ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698