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

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

Issue 10855249: [Chromoting] The daemon process now starts the networking process and passes the host configuration… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore sighup_listener.h/.cc since they are going to be reused by Jamie's CL and ignore SIGHUP for… Created 8 years, 3 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/win/host_service.h" 8 #include "remoting/host/win/host_service.h"
9 9
10 #include <windows.h> 10 #include <windows.h>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 L"Usage: %ls [options]\n" 73 L"Usage: %ls [options]\n"
74 L"\n" 74 L"\n"
75 L"Options:\n" 75 L"Options:\n"
76 L" --console - Run the service interactively for debugging purposes.\n" 76 L" --console - Run the service interactively for debugging purposes.\n"
77 L" --elevate=<...> - Run <...> elevated.\n" 77 L" --elevate=<...> - Run <...> elevated.\n"
78 L" --help, --? - Print this message.\n"; 78 L" --help, --? - Print this message.\n";
79 79
80 // The command line parameters that should be copied from the service's command 80 // The command line parameters that should be copied from the service's command
81 // line when launching an elevated child. 81 // line when launching an elevated child.
82 const char* kCopiedSwitchNames[] = { 82 const char* kCopiedSwitchNames[] = {
83 "auth-config", "host-config", "chromoting-ipc", switches::kV, 83 "host-config", "daemon-pipe", switches::kV, switches::kVModule };
84 switches::kVModule };
85 84
86 // Exit codes: 85 // Exit codes:
87 const int kSuccessExitCode = 0; 86 const int kSuccessExitCode = 0;
88 const int kUsageExitCode = 1; 87 const int kUsageExitCode = 1;
89 const int kErrorExitCode = 2; 88 const int kErrorExitCode = 2;
90 89
91 void usage(const FilePath& program_name) { 90 void usage(const FilePath& program_name) {
92 LOG(INFO) << StringPrintf(kUsageMessage, 91 LOG(INFO) << StringPrintf(kUsageMessage,
93 UTF16ToWide(program_name.value()).c_str()); 92 UTF16ToWide(program_name.value()).c_str());
94 } 93 }
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 } 502 }
504 503
505 remoting::HostService* service = remoting::HostService::GetInstance(); 504 remoting::HostService* service = remoting::HostService::GetInstance();
506 if (!service->InitWithCommandLine(command_line)) { 505 if (!service->InitWithCommandLine(command_line)) {
507 usage(command_line->GetProgram()); 506 usage(command_line->GetProgram());
508 return kUsageExitCode; 507 return kUsageExitCode;
509 } 508 }
510 509
511 return service->Run(); 510 return service->Run();
512 } 511 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698