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

Side by Side Diff: remoting/host/service_urls.cc

Issue 24579003: Clean up remaining unused globals (on mac). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: staticmedia Created 7 years, 2 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 | « remoting/host/server_log_entry.cc ('k') | skia/ext/platform_canvas_unittest.cc » ('j') | no next file with comments »
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 #include "remoting/host/service_urls.h" 5 #include "remoting/host/service_urls.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace {
11
12 // Configurable service data. 10 // Configurable service data.
13 const char kDirectoryBaseUrl[] = "https://www.googleapis.com/chromoting/v1"; 11 const char kDirectoryBaseUrl[] = "https://www.googleapis.com/chromoting/v1";
14 const char kXmppServerAddress[] = "talk.google.com:5222"; 12 const char kXmppServerAddress[] = "talk.google.com:5222";
15 const bool kXmppServerUseTls = true; 13 const bool kXmppServerUseTls = true;
16 const char kDirectoryBotJid[] = "remoting@bot.talk.google.com"; 14 const char kDirectoryBotJid[] = "remoting@bot.talk.google.com";
17 15
18 // Command line switches. 16 // Command line switches.
17 #if !defined(NDEBUG)
19 const char kDirectoryBaseUrlSwitch[] = "directory-base-url"; 18 const char kDirectoryBaseUrlSwitch[] = "directory-base-url";
20 const char kXmppServerAddressSwitch[] = "xmpp-server-address"; 19 const char kXmppServerAddressSwitch[] = "xmpp-server-address";
21 const char kXmppServerDisableTlsSwitch[] = "disable-xmpp-server-tls"; 20 const char kXmppServerDisableTlsSwitch[] = "disable-xmpp-server-tls";
22 const char kDirectoryBotJidSwitch[] = "directory-bot-jid"; 21 const char kDirectoryBotJidSwitch[] = "directory-bot-jid";
22 #endif // !defined(NDEBUG)
23 23
24 // Non-configurable service paths. 24 // Non-configurable service paths.
25 const char kDirectoryHostsSuffix[] = "/@me/hosts/"; 25 const char kDirectoryHostsSuffix[] = "/@me/hosts/";
26 26
27 } // namespace
28
29 namespace remoting { 27 namespace remoting {
30 28
31 ServiceUrls::ServiceUrls() 29 ServiceUrls::ServiceUrls()
32 : directory_base_url_(kDirectoryBaseUrl), 30 : directory_base_url_(kDirectoryBaseUrl),
33 xmpp_server_address_(kXmppServerAddress), 31 xmpp_server_address_(kXmppServerAddress),
34 xmpp_server_use_tls_(kXmppServerUseTls), 32 xmpp_server_use_tls_(kXmppServerUseTls),
35 directory_bot_jid_(kDirectoryBotJid) { 33 directory_bot_jid_(kDirectoryBotJid) {
36 #if !defined(NDEBUG) 34 #if !defined(NDEBUG)
37 // Allow debug builds to override urls via command line. 35 // Allow debug builds to override urls via command line.
38 CommandLine* command_line = CommandLine::ForCurrentProcess(); 36 CommandLine* command_line = CommandLine::ForCurrentProcess();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 76
79 bool ServiceUrls::xmpp_server_use_tls() const { 77 bool ServiceUrls::xmpp_server_use_tls() const {
80 return xmpp_server_use_tls_; 78 return xmpp_server_use_tls_;
81 } 79 }
82 80
83 const std::string& ServiceUrls::directory_bot_jid() const { 81 const std::string& ServiceUrls::directory_bot_jid() const {
84 return directory_bot_jid_; 82 return directory_bot_jid_;
85 } 83 }
86 84
87 } // namespace remoting 85 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/server_log_entry.cc ('k') | skia/ext/platform_canvas_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698