| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "remoting/protocol/authenticator.h" | 8 #include "remoting/protocol/authenticator.h" |
| 9 #include "remoting/protocol/content_description.h" | 9 #include "remoting/protocol/content_description.h" |
| 10 #include "remoting/protocol/jingle_messages.h" | 10 #include "remoting/protocol/jingle_messages.h" |
| 11 #include "remoting/protocol/jingle_session.h" | 11 #include "remoting/protocol/jingle_session.h" |
| 12 #include "remoting/protocol/transport.h" | 12 #include "remoting/protocol/transport.h" |
| 13 #include "remoting/signaling/iq_sender.h" | 13 #include "remoting/signaling/iq_sender.h" |
| 14 #include "remoting/signaling/signal_strategy.h" | 14 #include "remoting/signaling/signal_strategy.h" |
| 15 #include "third_party/libjingle/source/talk/base/socketaddress.h" | |
| 16 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 15 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
| 16 #include "third_party/webrtc/base/socketaddress.h" |
| 17 | 17 |
| 18 using buzz::QName; | 18 using buzz::QName; |
| 19 | 19 |
| 20 namespace remoting { | 20 namespace remoting { |
| 21 namespace protocol { | 21 namespace protocol { |
| 22 | 22 |
| 23 JingleSessionManager::JingleSessionManager( | 23 JingleSessionManager::JingleSessionManager( |
| 24 scoped_ptr<TransportFactory> transport_factory) | 24 scoped_ptr<TransportFactory> transport_factory) |
| 25 : transport_factory_(transport_factory.Pass()), | 25 : transport_factory_(transport_factory.Pass()), |
| 26 signal_strategy_(NULL), | 26 signal_strategy_(NULL), |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 signal_strategy_->SendStanza( | 164 signal_strategy_->SendStanza( |
| 165 JingleMessageReply(error).ToXml(original_stanza)); | 165 JingleMessageReply(error).ToXml(original_stanza)); |
| 166 } | 166 } |
| 167 | 167 |
| 168 void JingleSessionManager::SessionDestroyed(JingleSession* session) { | 168 void JingleSessionManager::SessionDestroyed(JingleSession* session) { |
| 169 sessions_.erase(session->session_id_); | 169 sessions_.erase(session->session_id_); |
| 170 } | 170 } |
| 171 | 171 |
| 172 } // namespace protocol | 172 } // namespace protocol |
| 173 } // namespace remoting | 173 } // namespace remoting |
| OLD | NEW |