| 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/pepper_session_manager.h" |    5 #include "remoting/protocol/pepper_session_manager.h" | 
|    6  |    6  | 
|    7 #include "base/bind.h" |    7 #include "base/bind.h" | 
|    8 #include "remoting/jingle_glue/iq_sender.h" |    8 #include "remoting/jingle_glue/iq_sender.h" | 
|    9 #include "remoting/jingle_glue/jingle_info_request.h" |    9 #include "remoting/jingle_glue/jingle_info_request.h" | 
|   10 #include "remoting/jingle_glue/signal_strategy.h" |   10 #include "remoting/jingle_glue/signal_strategy.h" | 
|   11 #include "remoting/protocol/authenticator.h" |   11 #include "remoting/protocol/authenticator.h" | 
|   12 #include "remoting/protocol/jingle_messages.h" |   12 #include "remoting/protocol/jingle_messages.h" | 
|   13 #include "remoting/protocol/pepper_session.h" |   13 #include "remoting/protocol/pepper_session.h" | 
|   14 #include "third_party/libjingle/source/talk/base/socketaddress.h" |   14 #include "third_party/libjingle/source/talk/base/socketaddress.h" | 
|   15 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |   15 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 
|   16  |   16  | 
|   17 using buzz::QName; |   17 using buzz::QName; | 
|   18  |   18  | 
|   19 namespace remoting { |   19 namespace remoting { | 
|   20 namespace protocol { |   20 namespace protocol { | 
|   21  |   21  | 
|   22 PepperSessionManager::PepperSessionManager(pp::Instance* pp_instance) |   22 PepperSessionManager::PepperSessionManager( | 
|   23     : pp_instance_(pp_instance), |   23     scoped_ptr<TransportFactory> transport_factory) | 
 |   24     : transport_factory_(transport_factory.Pass()), | 
|   24       signal_strategy_(NULL), |   25       signal_strategy_(NULL), | 
|   25       listener_(NULL), |   26       listener_(NULL), | 
|   26       ready_(false) { |   27       ready_(false) { | 
|   27 } |   28 } | 
|   28  |   29  | 
|   29 PepperSessionManager::~PepperSessionManager() { |   30 PepperSessionManager::~PepperSessionManager() { | 
|   30   Close(); |   31   Close(); | 
|   31 } |   32 } | 
|   32  |   33  | 
|   33 void PepperSessionManager::Init( |   34 void PepperSessionManager::Init( | 
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  153   buzz::XmlElement* stanza = reply.ToXml(original_stanza); |  154   buzz::XmlElement* stanza = reply.ToXml(original_stanza); | 
|  154   signal_strategy_->SendStanza(stanza); |  155   signal_strategy_->SendStanza(stanza); | 
|  155 } |  156 } | 
|  156  |  157  | 
|  157 void PepperSessionManager::SessionDestroyed(PepperSession* session) { |  158 void PepperSessionManager::SessionDestroyed(PepperSession* session) { | 
|  158   sessions_.erase(session->session_id_); |  159   sessions_.erase(session->session_id_); | 
|  159 } |  160 } | 
|  160  |  161  | 
|  161 }  // namespace protocol |  162 }  // namespace protocol | 
|  162 }  // namespace remoting |  163 }  // namespace remoting | 
| OLD | NEW |