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

Unified Diff: remoting/base/constants.h

Issue 10579002: Cleanup: merging three different constants.h into a single header. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/base/constants.cc » ('j') | remoting/remoting.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « no previous file | remoting/base/constants.cc » ('j') | remoting/remoting.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698