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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/base/constants.cc » ('j') | remoting/remoting.gyp » ('J')
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_BASE_CONSTANTS_H_ 5 #ifndef REMOTING_BASE_CONSTANTS_H_
6 #define REMOTING_BASE_CONSTANTS_H_ 6 #define REMOTING_BASE_CONSTANTS_H_
7 7
8 #include "base/compiler_specific.h"
9
10 // Warning: If you modify any HOST_PLUGIN_XXX macro in this file, make sure to
11 // modify the following files too:
12 // - remoting/remoting.gyp
13 // - remoting/chromium_branding
14 // - remoting/google_chrome_branding
15 // - remoting/host/plugin/host_plugin.ver
16
17 #define HOST_PLUGIN_DESCRIPTION \
18 "Allow another user to access your computer securely over the Internet."
19 #define HOST_PLUGIN_MIME_TYPE "application/vnd.chromium.remoting-host"
20
21 #if defined(GOOGLE_CHROME_BUILD)
22 #define HOST_PLUGIN_NAME "Chrome Remote Desktop Host"
23 #else
24 #define HOST_PLUGIN_NAME "Chromoting Host"
25 #endif // defined(GOOGLE_CHROME_BUILD)
26
8 namespace remoting { 27 namespace remoting {
9 28
10 extern const char kChromotingBotJid[]; 29 extern const char kChromotingBotJid[];
11 30
12 // Service name used for authentication. 31 // Service name used for authentication.
13 // TODO(ajwong): Remove this once we've killed off XmppToken usage. 32 // TODO(ajwong): Remove this once we've killed off XmppToken usage.
14 // BUG:83897 33 // BUG:83897
15 extern const char kChromotingTokenDefaultServiceName[]; 34 extern const char kChromotingTokenDefaultServiceName[];
16 35
17 // Namespace used for chromoting XMPP stanzas. 36 // Namespace used for chromoting XMPP stanzas.
18 extern const char kChromotingXmlNamespace[]; 37 extern const char kChromotingXmlNamespace[];
19 38
20 // Channel names. 39 // Channel names.
21 extern const char kAudioChannelName[]; 40 extern const char kAudioChannelName[];
22 extern const char kControlChannelName[]; 41 extern const char kControlChannelName[];
23 extern const char kEventChannelName[]; 42 extern const char kEventChannelName[];
24 extern const char kVideoChannelName[]; 43 extern const char kVideoChannelName[];
25 extern const char kVideoRtpChannelName[]; 44 extern const char kVideoRtpChannelName[];
26 extern const char kVideoRtcpChannelName[]; 45 extern const char kVideoRtcpChannelName[];
27 46
28 // MIME types for the clipboard. 47 // MIME types for the clipboard.
29 extern const char kMimeTypeTextUtf8[]; 48 extern const char kMimeTypeTextUtf8[];
30 49
50 // Known host exit codes.
51 // Please keep this enum in sync with:
52 // remoting/host/installer/mac/PrivilegedHelperTools/
53 // org.chromium.chromoting.me2me.sh
54 enum HostExitCodes {
55 kSuccessExitCode = 0,
56 kReservedForX11ExitCode = 1,
57 kInvalidHostConfigurationExitCode = 2,
58 kInvalidHostIdExitCode = 3,
59 kInvalidOauthCredentialsExitCode = 4,
60
61 // The range of the exit codes that should be interpreted as a permanent error
62 // condition.
63 kMinPermanentErrorExitCode = kInvalidHostConfigurationExitCode,
64 kMaxPermanentErrorExitCode = kInvalidOauthCredentialsExitCode
65 };
66
67 #if defined(OS_WIN)
68 // The Omaha Appid of the host.
69 extern const wchar_t kHostOmahaAppid[];
70 #endif // defined(OS_WIN)
71
31 } // namespace remoting 72 } // namespace remoting
32 73
33 #endif // REMOTING_BASE_CONSTANTS_H_ 74 #endif // REMOTING_BASE_CONSTANTS_H_
OLDNEW
« 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