OLD | NEW |
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/jingle_glue/jingle_info_request.h" | 5 #include "remoting/jingle_glue/jingle_info_request.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "base/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "net/base/net_util.h" | 11 #include "net/base/net_util.h" |
12 #include "remoting/jingle_glue/iq_sender.h" | 12 #include "remoting/jingle_glue/iq_sender.h" |
13 #include "third_party/libjingle/source/talk/base/socketaddress.h" | 13 #include "third_party/libjingle/source/talk/base/socketaddress.h" |
14 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 14 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
15 #include "third_party/libjingle/source/talk/xmpp/constants.h" | 15 #include "third_party/libjingle/source/talk/xmpp/constants.h" |
16 | 16 |
17 namespace remoting { | 17 namespace remoting { |
18 | 18 |
19 JingleInfoRequest::JingleInfoRequest(SignalStrategy* signal_strategy) | 19 JingleInfoRequest::JingleInfoRequest(SignalStrategy* signal_strategy) |
20 : iq_sender_(signal_strategy) { | 20 : iq_sender_(signal_strategy) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 std::string host = server->Attr(buzz::QN_JINGLE_INFO_HOST); | 75 std::string host = server->Attr(buzz::QN_JINGLE_INFO_HOST); |
76 if (host != buzz::STR_EMPTY) | 76 if (host != buzz::STR_EMPTY) |
77 relay_hosts.push_back(host); | 77 relay_hosts.push_back(host); |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 on_jingle_info_cb_.Run(relay_token, relay_hosts, stun_hosts); | 81 on_jingle_info_cb_.Run(relay_token, relay_hosts, stun_hosts); |
82 } | 82 } |
83 | 83 |
84 } // namespace remoting | 84 } // namespace remoting |
OLD | NEW |