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

Side by Side Diff: remoting/host/host_service_win.cc

Issue 9705065: Introducing the WorkerProcessLauncher class implementing the common logic for spawning a worker pro… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 // 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/host_service_win.h" 8 #include "remoting/host/host_service_win.h"
9 9
10 #include <windows.h> 10 #include <windows.h>
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 void HostService::RunMessageLoop() { 356 void HostService::RunMessageLoop() {
357 // Launch the I/O thread. 357 // Launch the I/O thread.
358 base::Thread io_thread(kIoThreadName); 358 base::Thread io_thread(kIoThreadName);
359 base::Thread::Options io_thread_options(MessageLoop::TYPE_IO, 0); 359 base::Thread::Options io_thread_options(MessageLoop::TYPE_IO, 0);
360 if (!io_thread.StartWithOptions(io_thread_options)) { 360 if (!io_thread.StartWithOptions(io_thread_options)) {
361 shutting_down_ = true; 361 shutting_down_ = true;
362 stopped_event_.Signal(); 362 stopped_event_.Signal();
363 return; 363 return;
364 } 364 }
365 365
366 WtsSessionProcessLauncher launcher(this, host_binary_, &io_thread); 366 WtsSessionProcessLauncher launcher(this, host_binary_,
367 io_thread.message_loop_proxy().get());
Wez 2012/03/15 23:24:31 With the change to pass a scoped_refptr<> to WtsSe
alexeypa (please no reviews) 2012/03/16 17:43:50 Done.
367 368
368 // Run the service. 369 // Run the service.
369 message_loop_->Run(); 370 message_loop_->Run();
370 371
371 // Clean up the observers by emulating detaching from the console. 372 // Clean up the observers by emulating detaching from the console.
372 shutting_down_ = true; 373 shutting_down_ = true;
373 OnSessionChange(); 374 OnSessionChange();
374 375
375 // Release the control handler. 376 // Release the control handler.
376 stopped_event_.Signal(); 377 stopped_event_.Signal();
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 } 580 }
580 581
581 remoting::HostService* service = remoting::HostService::GetInstance(); 582 remoting::HostService* service = remoting::HostService::GetInstance();
582 if (!service->InitWithCommandLine(command_line)) { 583 if (!service->InitWithCommandLine(command_line)) {
583 usage(argv[0]); 584 usage(argv[0]);
584 return kUsageExitCode; 585 return kUsageExitCode;
585 } 586 }
586 587
587 return service->Run(); 588 return service->Run();
588 } 589 }
OLDNEW
« no previous file with comments | « no previous file | remoting/host/worker_process_launcher.h » ('j') | remoting/host/worker_process_launcher.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698