| Index: remoting/base/constants.h
|
| diff --git a/remoting/base/constants.h b/remoting/base/constants.h
|
| index f5ea53757eb9bbce5856c3221b707e277ec93d61..855e34be74a27d0066c69c55d537a635ee8f343b 100644
|
| --- a/remoting/base/constants.h
|
| +++ b/remoting/base/constants.h
|
| @@ -5,6 +5,25 @@
|
| #ifndef REMOTING_BASE_CONSTANTS_H_
|
| #define REMOTING_BASE_CONSTANTS_H_
|
|
|
| +#include "base/compiler_specific.h"
|
| +
|
| +// Warning: If you modify any HOST_PLUGIN_XXX macro in this file, make sure to
|
| +// modify the following files too:
|
| +// - remoting/remoting.gyp
|
| +// - remoting/chromium_branding
|
| +// - remoting/google_chrome_branding
|
| +// - remoting/host/plugin/host_plugin.ver
|
| +
|
| +#define HOST_PLUGIN_DESCRIPTION \
|
| + "Allow another user to access your computer securely over the Internet."
|
| +#define HOST_PLUGIN_MIME_TYPE "application/vnd.chromium.remoting-host"
|
| +
|
| +#if defined(GOOGLE_CHROME_BUILD)
|
| +#define HOST_PLUGIN_NAME "Chrome Remote Desktop Host"
|
| +#else
|
| +#define HOST_PLUGIN_NAME "Chromoting Host"
|
| +#endif // defined(GOOGLE_CHROME_BUILD)
|
| +
|
| namespace remoting {
|
|
|
| extern const char kChromotingBotJid[];
|
| @@ -28,6 +47,28 @@ extern const char kVideoRtcpChannelName[];
|
| // MIME types for the clipboard.
|
| extern const char kMimeTypeTextUtf8[];
|
|
|
| +// Known host exit codes.
|
| +// Please keep this enum in sync with:
|
| +// remoting/host/installer/mac/PrivilegedHelperTools/
|
| +// org.chromium.chromoting.me2me.sh
|
| +enum HostExitCodes {
|
| + kSuccessExitCode = 0,
|
| + kReservedForX11ExitCode = 1,
|
| + kInvalidHostConfigurationExitCode = 2,
|
| + kInvalidHostIdExitCode = 3,
|
| + kInvalidOauthCredentialsExitCode = 4,
|
| +
|
| + // The range of the exit codes that should be interpreted as a permanent error
|
| + // condition.
|
| + kMinPermanentErrorExitCode = kInvalidHostConfigurationExitCode,
|
| + kMaxPermanentErrorExitCode = kInvalidOauthCredentialsExitCode
|
| +};
|
| +
|
| +#if defined(OS_WIN)
|
| +// The Omaha Appid of the host.
|
| +extern const wchar_t kHostOmahaAppid[];
|
| +#endif // defined(OS_WIN)
|
| +
|
| } // namespace remoting
|
|
|
| #endif // REMOTING_BASE_CONSTANTS_H_
|
|
|