OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 common entry point shared by all Chromoting Host | 5 // This file implements the common entry point shared by all Chromoting Host |
6 // processes. | 6 // processes. |
7 | 7 |
8 #include "remoting/host/host_main.h" | 8 #include "remoting/host/host_main.h" |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 "Usage: %s [options]\n" | 69 "Usage: %s [options]\n" |
70 "\n" | 70 "\n" |
71 "Options:\n" | 71 "Options:\n" |
72 " --audio-pipe-name=<pipe> - Sets the pipe name to capture audio on Linux.\n" | 72 " --audio-pipe-name=<pipe> - Sets the pipe name to capture audio on Linux.\n" |
73 " --console - Runs the daemon interactively.\n" | 73 " --console - Runs the daemon interactively.\n" |
74 " --daemon-pipe=<pipe> - Specifies the pipe to connect to the daemon.\n" | 74 " --daemon-pipe=<pipe> - Specifies the pipe to connect to the daemon.\n" |
75 " --elevate=<binary> - Runs <binary> elevated.\n" | 75 " --elevate=<binary> - Runs <binary> elevated.\n" |
76 " --host-config=<config> - Specifies the host configuration.\n" | 76 " --host-config=<config> - Specifies the host configuration.\n" |
77 " --help, -? - Print this message.\n" | 77 " --help, -? - Print this message.\n" |
78 " --type - Specifies process type.\n" | 78 " --type - Specifies process type.\n" |
79 " --version - Prints the host version and exits.\n"; | 79 " --version - Prints the host version and exits.\n" |
| 80 " --window-id=<id> - Specifies a window to remote," |
| 81 " instead of the whole desktop.\n"; |
80 | 82 |
81 void Usage(const base::FilePath& program_name) { | 83 void Usage(const base::FilePath& program_name) { |
82 printf(kUsageMessage, program_name.MaybeAsASCII().c_str()); | 84 printf(kUsageMessage, program_name.MaybeAsASCII().c_str()); |
83 } | 85 } |
84 | 86 |
85 #if defined(OS_WIN) | 87 #if defined(OS_WIN) |
86 | 88 |
87 // Runs the binary specified by the command line, elevated. | 89 // Runs the binary specified by the command line, elevated. |
88 int RunElevated() { | 90 int RunElevated() { |
89 const base::CommandLine::SwitchMap& switches = | 91 const base::CommandLine::SwitchMap& switches = |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 return exit_code; | 238 return exit_code; |
237 } | 239 } |
238 | 240 |
239 } // namespace remoting | 241 } // namespace remoting |
240 | 242 |
241 #if !defined(OS_WIN) | 243 #if !defined(OS_WIN) |
242 int main(int argc, char** argv) { | 244 int main(int argc, char** argv) { |
243 return remoting::HostMain(argc, argv); | 245 return remoting::HostMain(argc, argv); |
244 } | 246 } |
245 #endif // !defined(OS_WIN) | 247 #endif // !defined(OS_WIN) |
OLD | NEW |