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

Side by Side Diff: remoting/base/service_urls.h

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 unified diff | Download patch
« no previous file with comments | « no previous file | remoting/base/service_urls.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SERVICE_URLS_H_ 5 #ifndef REMOTING_BASE_SERVICE_URLS_H_
6 #define REMOTING_BASE_SERVICE_URLS_H_ 6 #define REMOTING_BASE_SERVICE_URLS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 14
15 // This class contains the URLs to the services used by the host (except for 15 // This class contains the URLs to the services used by the host (except for
16 // Gaia, which has its own GaiaUrls class. In debug builds, it allows these URLs 16 // Gaia, which has its own GaiaUrls class. In debug builds, it allows these URLs
17 // to be overriden by command line switches, allowing the host process to be 17 // to be overriden by command line switches, allowing the host process to be
18 // pointed at alternate/test servers. 18 // pointed at alternate/test servers.
19 class ServiceUrls { 19 class ServiceUrls {
20 public: 20 public:
21 static ServiceUrls* GetInstance(); 21 static ServiceUrls* GetInstance();
22 22
23 // Remoting directory REST API URLs. 23 // Remoting directory REST API URLs.
24 const std::string& directory_base_url() const; 24 const std::string& directory_base_url() const;
25 const std::string& directory_hosts_url() const; 25 const std::string& directory_hosts_url() const;
26 26
27 // XMPP Server configuration. 27 // XMPP Server configuration.
28 const std::string& xmpp_server_address() const; 28 const std::string& xmpp_server_address() const;
29 const std::string& xmpp_server_address_for_me2me_host() const;
29 bool xmpp_server_use_tls() const; 30 bool xmpp_server_use_tls() const;
30 31
31 // Remoting directory bot JID (for registering hosts, logging, heartbeats). 32 // Remoting directory bot JID (for registering hosts, logging, heartbeats).
32 const std::string& directory_bot_jid() const; 33 const std::string& directory_bot_jid() const;
33 34
34 private: 35 private:
35 friend struct DefaultSingletonTraits<ServiceUrls>; 36 friend struct DefaultSingletonTraits<ServiceUrls>;
36 37
37 ServiceUrls(); 38 ServiceUrls();
38 virtual ~ServiceUrls(); 39 virtual ~ServiceUrls();
39 40
40 std::string directory_base_url_; 41 std::string directory_base_url_;
41 std::string directory_hosts_url_; 42 std::string directory_hosts_url_;
42 std::string xmpp_server_address_; 43 std::string xmpp_server_address_;
44 std::string xmpp_server_address_for_me2me_host_;
43 bool xmpp_server_use_tls_; 45 bool xmpp_server_use_tls_;
44 std::string directory_bot_jid_; 46 std::string directory_bot_jid_;
45 47
46 DISALLOW_COPY_AND_ASSIGN(ServiceUrls); 48 DISALLOW_COPY_AND_ASSIGN(ServiceUrls);
47 }; 49 };
48 50
49 } // namespace remoting 51 } // namespace remoting
50 52
51 #endif // REMOTING_BASE_SERVICE_URLS_H_ 53 #endif // REMOTING_BASE_SERVICE_URLS_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/base/service_urls.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698