| 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.h" | 5 #include "remoting/protocol/jingle_session.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
| 16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
| 17 #include "base/strings/string_split.h" | 17 #include "base/strings/string_split.h" |
| 18 #include "base/threading/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
| 19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
| 20 #include "remoting/base/constants.h" | 20 #include "remoting/base/constants.h" |
| 21 #include "remoting/protocol/authenticator.h" | 21 #include "remoting/protocol/authenticator.h" |
| 22 #include "remoting/protocol/content_description.h" | 22 #include "remoting/protocol/content_description.h" |
| 23 #include "remoting/protocol/jingle_messages.h" | 23 #include "remoting/protocol/jingle_messages.h" |
| 24 #include "remoting/protocol/jingle_session_manager.h" | 24 #include "remoting/protocol/jingle_session_manager.h" |
| 25 #include "remoting/protocol/session_config.h" | 25 #include "remoting/protocol/session_config.h" |
| 26 #include "remoting/protocol/session_plugin.h" | 26 #include "remoting/protocol/session_plugin.h" |
| 27 #include "remoting/protocol/transport.h" | 27 #include "remoting/protocol/transport.h" |
| 28 #include "remoting/signaling/iq_sender.h" | 28 #include "remoting/signaling/iq_sender.h" |
| 29 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 29 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
| 30 #include "third_party/webrtc/libjingle/xmpp/constants.h" | 30 #include "third_party/libjingle_xmpp/xmpp/constants.h" |
| 31 #include "third_party/webrtc/p2p/base/candidate.h" | 31 #include "third_party/webrtc/p2p/base/candidate.h" |
| 32 | 32 |
| 33 using buzz::XmlElement; | 33 using buzz::XmlElement; |
| 34 | 34 |
| 35 namespace remoting { | 35 namespace remoting { |
| 36 namespace protocol { | 36 namespace protocol { |
| 37 | 37 |
| 38 namespace { | 38 namespace { |
| 39 | 39 |
| 40 // How long we should wait for a response from the other end. This value is used | 40 // How long we should wait for a response from the other end. This value is used |
| (...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 authenticator_->GetNextMessage())); | 796 authenticator_->GetNextMessage())); |
| 797 SendMessage(std::move(message)); | 797 SendMessage(std::move(message)); |
| 798 } | 798 } |
| 799 | 799 |
| 800 std::string JingleSession::GetNextOutgoingId() { | 800 std::string JingleSession::GetNextOutgoingId() { |
| 801 return outgoing_id_prefix_ + "_" + base::IntToString(++next_outgoing_id_); | 801 return outgoing_id_prefix_ + "_" + base::IntToString(++next_outgoing_id_); |
| 802 } | 802 } |
| 803 | 803 |
| 804 } // namespace protocol | 804 } // namespace protocol |
| 805 } // namespace remoting | 805 } // namespace remoting |
| OLD | NEW |