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 <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
15 #include "base/strings/string_split.h" | 15 #include "base/strings/string_split.h" |
16 #include "base/threading/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
18 #include "remoting/base/constants.h" | 18 #include "remoting/base/constants.h" |
19 #include "remoting/protocol/authenticator.h" | 19 #include "remoting/protocol/authenticator.h" |
20 #include "remoting/protocol/content_description.h" | 20 #include "remoting/protocol/content_description.h" |
21 #include "remoting/protocol/jingle_messages.h" | 21 #include "remoting/protocol/jingle_messages.h" |
22 #include "remoting/protocol/jingle_session_manager.h" | 22 #include "remoting/protocol/jingle_session_manager.h" |
23 #include "remoting/protocol/session_config.h" | 23 #include "remoting/protocol/session_config.h" |
24 #include "remoting/protocol/transport.h" | 24 #include "remoting/protocol/transport.h" |
25 #include "remoting/signaling/iq_sender.h" | 25 #include "remoting/signaling/iq_sender.h" |
26 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 26 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
27 #include "third_party/webrtc/libjingle/xmpp/constants.h" | 27 #include "third_party/libjingle_xmpp/xmpp/constants.h" |
28 #include "third_party/webrtc/p2p/base/candidate.h" | 28 #include "third_party/webrtc/p2p/base/candidate.h" |
29 | 29 |
30 using buzz::XmlElement; | 30 using buzz::XmlElement; |
31 | 31 |
32 namespace remoting { | 32 namespace remoting { |
33 namespace protocol { | 33 namespace protocol { |
34 | 34 |
35 namespace { | 35 namespace { |
36 | 36 |
37 // How long we should wait for a response from the other end. This value is used | 37 // How long we should wait for a response from the other end. This value is used |
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 return state_ == CONNECTING || state_ == ACCEPTING || state_ == ACCEPTED || | 746 return state_ == CONNECTING || state_ == ACCEPTING || state_ == ACCEPTED || |
747 state_ == AUTHENTICATING || state_ == AUTHENTICATED; | 747 state_ == AUTHENTICATING || state_ == AUTHENTICATED; |
748 } | 748 } |
749 | 749 |
750 std::string JingleSession::GetNextOutgoingId() { | 750 std::string JingleSession::GetNextOutgoingId() { |
751 return outgoing_id_prefix_ + "_" + base::IntToString(++next_outgoing_id_); | 751 return outgoing_id_prefix_ + "_" + base::IntToString(++next_outgoing_id_); |
752 } | 752 } |
753 | 753 |
754 } // namespace protocol | 754 } // namespace protocol |
755 } // namespace remoting | 755 } // namespace remoting |
OLD | NEW |