OLD | NEW |
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 #include "remoting/base/service_urls.h" | 5 #include "remoting/base/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 // Configurable service data. | 10 // Configurable service data. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 } | 67 } |
68 #endif // !defined(NDEBUG) | 68 #endif // !defined(NDEBUG) |
69 | 69 |
70 directory_hosts_url_ = directory_base_url_ + kDirectoryHostsSuffix; | 70 directory_hosts_url_ = directory_base_url_ + kDirectoryHostsSuffix; |
71 } | 71 } |
72 | 72 |
73 ServiceUrls::~ServiceUrls() { | 73 ServiceUrls::~ServiceUrls() { |
74 } | 74 } |
75 | 75 |
76 ServiceUrls* remoting::ServiceUrls::GetInstance() { | 76 ServiceUrls* remoting::ServiceUrls::GetInstance() { |
77 return Singleton<ServiceUrls>::get(); | 77 return base::Singleton<ServiceUrls>::get(); |
78 } | 78 } |
79 | 79 |
80 const std::string& ServiceUrls::directory_base_url() const { | 80 const std::string& ServiceUrls::directory_base_url() const { |
81 return directory_base_url_; | 81 return directory_base_url_; |
82 } | 82 } |
83 | 83 |
84 const std::string& ServiceUrls::directory_hosts_url() const { | 84 const std::string& ServiceUrls::directory_hosts_url() const { |
85 return directory_hosts_url_; | 85 return directory_hosts_url_; |
86 } | 86 } |
87 | 87 |
(...skipping 15 matching lines...) Expand all Loading... |
103 | 103 |
104 const std::string& ServiceUrls::directory_bot_jid() const { | 104 const std::string& ServiceUrls::directory_bot_jid() const { |
105 return directory_bot_jid_; | 105 return directory_bot_jid_; |
106 } | 106 } |
107 | 107 |
108 const std::string& ServiceUrls::gcd_jid() const { | 108 const std::string& ServiceUrls::gcd_jid() const { |
109 return directory_bot_jid_; | 109 return directory_bot_jid_; |
110 } | 110 } |
111 | 111 |
112 } // namespace remoting | 112 } // namespace remoting |
OLD | NEW |