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/protocol/jingle_session_manager.h" | 5 #include "remoting/protocol/jingle_session_manager.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "remoting/protocol/authenticator.h" | 10 #include "remoting/protocol/authenticator.h" |
11 #include "remoting/protocol/content_description.h" | 11 #include "remoting/protocol/content_description.h" |
12 #include "remoting/protocol/jingle_messages.h" | 12 #include "remoting/protocol/jingle_messages.h" |
13 #include "remoting/protocol/jingle_session.h" | 13 #include "remoting/protocol/jingle_session.h" |
14 #include "remoting/protocol/transport.h" | 14 #include "remoting/protocol/transport.h" |
15 #include "remoting/signaling/iq_sender.h" | 15 #include "remoting/signaling/iq_sender.h" |
16 #include "remoting/signaling/signal_strategy.h" | 16 #include "remoting/signaling/signal_strategy.h" |
| 17 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
| 18 #include "third_party/libjingle_xmpp/xmpp/constants.h" |
17 #include "third_party/webrtc/base/socketaddress.h" | 19 #include "third_party/webrtc/base/socketaddress.h" |
18 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | |
19 #include "third_party/webrtc/libjingle/xmpp/constants.h" | |
20 | 20 |
21 using buzz::QName; | 21 using buzz::QName; |
22 | 22 |
23 namespace remoting { | 23 namespace remoting { |
24 namespace protocol { | 24 namespace protocol { |
25 | 25 |
26 JingleSessionManager::JingleSessionManager(SignalStrategy* signal_strategy) | 26 JingleSessionManager::JingleSessionManager(SignalStrategy* signal_strategy) |
27 : signal_strategy_(signal_strategy), | 27 : signal_strategy_(signal_strategy), |
28 protocol_config_(CandidateSessionConfig::CreateDefault()), | 28 protocol_config_(CandidateSessionConfig::CreateDefault()), |
29 iq_sender_(new IqSender(signal_strategy_)) { | 29 iq_sender_(new IqSender(signal_strategy_)) { |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 signal_strategy_->SendStanza( | 147 signal_strategy_->SendStanza( |
148 JingleMessageReply(error).ToXml(original_stanza.get())); | 148 JingleMessageReply(error).ToXml(original_stanza.get())); |
149 } | 149 } |
150 | 150 |
151 void JingleSessionManager::SessionDestroyed(JingleSession* session) { | 151 void JingleSessionManager::SessionDestroyed(JingleSession* session) { |
152 sessions_.erase(session->session_id_); | 152 sessions_.erase(session->session_id_); |
153 } | 153 } |
154 | 154 |
155 } // namespace protocol | 155 } // namespace protocol |
156 } // namespace remoting | 156 } // namespace remoting |
OLD | NEW |