| OLD | NEW |
| 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_CONSTANTS_H_ | 5 #ifndef REMOTING_HOST_CONSTANTS_H_ |
| 6 #define REMOTING_HOST_CONSTANTS_H_ | 6 #define REMOTING_HOST_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 | 9 |
| 10 namespace remoting { | 10 namespace remoting { |
| 11 | 11 |
| 12 // This is the default prefix that is prepended to ".talkgadget.google.com" | 12 // This is the default prefix that is prepended to ".talkgadget.google.com" |
| 13 // to form the complete talkgadget domain name. Policy settings allow admins | 13 // to form the complete talkgadget domain name. Policy settings allow admins |
| 14 // to change the prefix that is used. | 14 // to change the prefix that is used. |
| 15 extern const char kDefaultTalkGadgetPrefix[]; | 15 extern const char kDefaultTalkGadgetPrefix[]; |
| 16 | 16 |
| 17 // Known host exit codes. | 17 // Known host exit codes. |
| 18 // Please keep this enum in sync with: | 18 // Please keep this enum in sync with: |
| 19 // remoting/host/installer/mac/PrivilegedHelperTools/ | 19 // remoting/host/installer/mac/PrivilegedHelperTools/ |
| 20 // org.chromium.chromoting.me2me.sh | 20 // org.chromium.chromoting.me2me.sh |
| 21 // and remoting/tools/me2me_virtual_host.py. | 21 // and remoting/tools/me2me_virtual_host.py. |
| 22 enum HostExitCodes { | 22 enum HostExitCodes { |
| 23 // Error codes that don't indicate a permanent error condition. | 23 // Error codes that don't indicate a permanent error condition. |
| 24 kSuccessExitCode = 0, | 24 kSuccessExitCode = 0, |
| 25 kReservedForX11ExitCode = 1, | 25 kReservedForX11ExitCode = 1, |
| 26 kHostInitializationFailed = 7, |
| 26 | 27 |
| 27 // Error codes that do indicate a permanent error condition. | 28 // Error codes that do indicate a permanent error condition. |
| 28 kInvalidHostConfigurationExitCode = 2, | 29 kInvalidHostConfigurationExitCode = 2, |
| 29 kInvalidHostIdExitCode = 3, | 30 kInvalidHostIdExitCode = 3, |
| 30 kInvalidOauthCredentialsExitCode = 4, | 31 kInvalidOauthCredentialsExitCode = 4, |
| 31 kInvalidHostDomainExitCode = 5, | 32 kInvalidHostDomainExitCode = 5, |
| 32 kLoginScreenNotSupportedExitCode = 6, | 33 kLoginScreenNotSupportedExitCode = 6, |
| 33 | 34 |
| 34 // The range of the exit codes that should be interpreted as a permanent error | 35 // The range of the exit codes that should be interpreted as a permanent error |
| 35 // condition. | 36 // condition. |
| 36 kMinPermanentErrorExitCode = kInvalidHostConfigurationExitCode, | 37 kMinPermanentErrorExitCode = kInvalidHostConfigurationExitCode, |
| 37 kMaxPermanentErrorExitCode = kLoginScreenNotSupportedExitCode | 38 kMaxPermanentErrorExitCode = kLoginScreenNotSupportedExitCode |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 #if defined(OS_WIN) | 41 #if defined(OS_WIN) |
| 41 // The Omaha Appid of the host. | 42 // The Omaha Appid of the host. |
| 42 extern const wchar_t kHostOmahaAppid[]; | 43 extern const wchar_t kHostOmahaAppid[]; |
| 43 #endif // defined(OS_WIN) | 44 #endif // defined(OS_WIN) |
| 44 | 45 |
| 45 } // namespace remoting | 46 } // namespace remoting |
| 46 | 47 |
| 47 #endif // REMOTING_HOST_CONSTANTS_H_ | 48 #endif // REMOTING_HOST_CONSTANTS_H_ |
| OLD | NEW |