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

Unified Diff: remoting/base/service_urls.cc

Issue 1015853002: Use port 5222 for XMPP connection from Me2Me host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/base/service_urls.h ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/service_urls.cc
diff --git a/remoting/base/service_urls.cc b/remoting/base/service_urls.cc
index d371087bd48b1de8a593333d66992e1b12f0fa5c..2d6403b384b528ce98c11ae0a02a2a7232cdcfb0 100644
--- a/remoting/base/service_urls.cc
+++ b/remoting/base/service_urls.cc
@@ -10,6 +10,7 @@
// Configurable service data.
const char kDirectoryBaseUrl[] = "https://www.googleapis.com/chromoting/v1";
const char kXmppServerAddress[] = "talk.google.com:443";
+const char kXmppServerAddressForMe2MeHost[] = "talk.google.com:5222";
const bool kXmppServerUseTls = true;
const char kDirectoryBotJid[] = "remoting@bot.talk.google.com";
@@ -27,10 +28,11 @@ const char kDirectoryHostsSuffix[] = "/@me/hosts/";
namespace remoting {
ServiceUrls::ServiceUrls()
- : directory_base_url_(kDirectoryBaseUrl),
- xmpp_server_address_(kXmppServerAddress),
- xmpp_server_use_tls_(kXmppServerUseTls),
- directory_bot_jid_(kDirectoryBotJid) {
+ : directory_base_url_(kDirectoryBaseUrl),
+ xmpp_server_address_(kXmppServerAddress),
+ xmpp_server_address_for_me2me_host_(kXmppServerAddressForMe2MeHost),
+ xmpp_server_use_tls_(kXmppServerUseTls),
+ directory_bot_jid_(kDirectoryBotJid) {
#if !defined(NDEBUG)
// Allow debug builds to override urls via command line.
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
@@ -42,6 +44,7 @@ ServiceUrls::ServiceUrls()
if (command_line->HasSwitch(kXmppServerAddressSwitch)) {
xmpp_server_address_ = command_line->GetSwitchValueASCII(
kXmppServerAddressSwitch);
+ xmpp_server_address_for_me2me_host_ = xmpp_server_address_;
}
if (command_line->HasSwitch(kXmppServerDisableTlsSwitch)) {
xmpp_server_use_tls_ = false;
@@ -74,6 +77,10 @@ const std::string& ServiceUrls::xmpp_server_address() const {
return xmpp_server_address_;
}
+const std::string& ServiceUrls::xmpp_server_address_for_me2me_host() const {
+ return xmpp_server_address_for_me2me_host_;
+}
+
bool ServiceUrls::xmpp_server_use_tls() const {
return xmpp_server_use_tls_;
}
« no previous file with comments | « remoting/base/service_urls.h ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698