| 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 <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 using buzz::XmlElement; | 25 using buzz::XmlElement; |
| 26 | 26 |
| 27 namespace remoting { | 27 namespace remoting { |
| 28 namespace protocol { | 28 namespace protocol { |
| 29 | 29 |
| 30 JingleSessionManager::JingleSessionManager( | 30 JingleSessionManager::JingleSessionManager( |
| 31 base::MessageLoopProxy* message_loop) | 31 base::MessageLoopProxy* message_loop) |
| 32 : message_loop_(message_loop), | 32 : message_loop_(message_loop), |
| 33 signal_strategy_(NULL), | 33 signal_strategy_(NULL), |
| 34 listener_(NULL), |
| 34 allow_nat_traversal_(false), | 35 allow_nat_traversal_(false), |
| 35 ready_(false), | 36 ready_(false), |
| 36 http_port_allocator_(NULL), | 37 http_port_allocator_(NULL), |
| 37 closed_(false) { | 38 closed_(false) { |
| 38 } | 39 } |
| 39 | 40 |
| 40 JingleSessionManager::~JingleSessionManager() { | 41 JingleSessionManager::~JingleSessionManager() { |
| 41 // Session manager can be destroyed only after all sessions are destroyed. | 42 // Session manager can be destroyed only after all sessions are destroyed. |
| 42 DCHECK(sessions_.empty()); | 43 DCHECK(sessions_.empty()); |
| 43 Close(); | 44 Close(); |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 cricket::WriteError* error) { | 262 cricket::WriteError* error) { |
| 262 const ContentDescription* desc = | 263 const ContentDescription* desc = |
| 263 static_cast<const ContentDescription*>(content); | 264 static_cast<const ContentDescription*>(content); |
| 264 | 265 |
| 265 *elem = desc->ToXml(); | 266 *elem = desc->ToXml(); |
| 266 return true; | 267 return true; |
| 267 } | 268 } |
| 268 | 269 |
| 269 } // namespace protocol | 270 } // namespace protocol |
| 270 } // namespace remoting | 271 } // namespace remoting |
| OLD | NEW |