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

Side by Side Diff: remoting/host/host_exit_codes.h

Issue 1735523003: Improve handling of invalid command line in Me2Me host. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@win_threads
Patch Set: Created 4 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
« no previous file with comments | « remoting/host/desktop_process_main.cc ('k') | remoting/host/host_exit_codes.cc » ('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 #ifndef REMOTING_HOST_HOST_EXIT_CODES_H_ 5 #ifndef REMOTING_HOST_HOST_EXIT_CODES_H_
6 #define REMOTING_HOST_HOST_EXIT_CODES_H_ 6 #define REMOTING_HOST_HOST_EXIT_CODES_H_
7 7
8 namespace remoting { 8 namespace remoting {
9 9
10 // Known host exit codes. The exit codes indicating permanent errors must be in 10 // Known host exit codes. The exit codes indicating permanent errors must be in
11 // sync with: 11 // sync with:
12 // - remoting/host/installer/mac/PrivilegedHelperTools/ 12 // - remoting/host/installer/mac/PrivilegedHelperTools/
13 // org.chromium.chromoting.me2me.sh 13 // org.chromium.chromoting.me2me.sh
14 // - remoting/host/linux/linux_me2me_host.py 14 // - remoting/host/linux/linux_me2me_host.py
15 enum HostExitCodes { 15 enum HostExitCodes {
16 // Error codes that don't indicate a permanent error condition. 16 // Error codes that don't indicate a permanent error condition.
17 kSuccessExitCode = 0, 17 kSuccessExitCode = 0,
18 kReservedForX11ExitCode = 1, 18 kReservedForX11ExitCode = 1,
19 kInitializationFailed = 2, 19 kInitializationFailed = 2,
20 kUsageExitCode = 3, 20 kInvalidCommandLineExitCode = 3,
21 21
22 // Error codes that do indicate a permanent error condition. 22 // Error codes that do indicate a permanent error condition.
23 kInvalidHostConfigurationExitCode = 100, 23 kInvalidHostConfigurationExitCode = 100,
24 kInvalidHostIdExitCode = 101, 24 kInvalidHostIdExitCode = 101,
25 kInvalidOauthCredentialsExitCode = 102, 25 kInvalidOauthCredentialsExitCode = 102,
26 kInvalidHostDomainExitCode = 103, 26 kInvalidHostDomainExitCode = 103,
27 kLoginScreenNotSupportedExitCode = 104, 27 kLoginScreenNotSupportedExitCode = 104,
28 kUsernameMismatchExitCode = 105, 28 kUsernameMismatchExitCode = 105,
29 29
30 // The range of the exit codes that should be interpreted as a permanent error 30 // The range of the exit codes that should be interpreted as a permanent error
31 // condition. 31 // condition.
32 kMinPermanentErrorExitCode = kInvalidHostConfigurationExitCode, 32 kMinPermanentErrorExitCode = kInvalidHostConfigurationExitCode,
33 kMaxPermanentErrorExitCode = kUsernameMismatchExitCode 33 kMaxPermanentErrorExitCode = kUsernameMismatchExitCode
34 }; 34 };
35 35
36 const char* ExitCodeToString(HostExitCodes exit_code); 36 const char* ExitCodeToString(HostExitCodes exit_code);
37 } // namespace remoting 37 } // namespace remoting
38 38
39 #endif // REMOTING_HOST_HOST_EXIT_CODES_H_ 39 #endif // REMOTING_HOST_HOST_EXIT_CODES_H_
OLDNEW
« no previous file with comments | « remoting/host/desktop_process_main.cc ('k') | remoting/host/host_exit_codes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698