Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: remoting/protocol/jingle_session.cc

Issue 653203005: Roll WebRTC 7546:7549. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Decreased the number of gyp changes in this patch since thats the only major change (the reset is j… Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/rand_util.h" 8 #include "base/rand_util.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "base/thread_task_runner_handle.h" 12 #include "base/thread_task_runner_handle.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "remoting/base/constants.h" 14 #include "remoting/base/constants.h"
15 #include "remoting/protocol/authenticator.h" 15 #include "remoting/protocol/authenticator.h"
16 #include "remoting/protocol/channel_authenticator.h" 16 #include "remoting/protocol/channel_authenticator.h"
17 #include "remoting/protocol/channel_multiplexer.h" 17 #include "remoting/protocol/channel_multiplexer.h"
18 #include "remoting/protocol/content_description.h" 18 #include "remoting/protocol/content_description.h"
19 #include "remoting/protocol/jingle_messages.h" 19 #include "remoting/protocol/jingle_messages.h"
20 #include "remoting/protocol/jingle_session_manager.h" 20 #include "remoting/protocol/jingle_session_manager.h"
21 #include "remoting/protocol/pseudotcp_channel_factory.h" 21 #include "remoting/protocol/pseudotcp_channel_factory.h"
22 #include "remoting/protocol/secure_channel_factory.h" 22 #include "remoting/protocol/secure_channel_factory.h"
23 #include "remoting/protocol/session_config.h" 23 #include "remoting/protocol/session_config.h"
24 #include "remoting/protocol/stream_channel_factory.h" 24 #include "remoting/protocol/stream_channel_factory.h"
25 #include "remoting/signaling/iq_sender.h" 25 #include "remoting/signaling/iq_sender.h"
26 #include "third_party/libjingle/source/talk/p2p/base/candidate.h"
27 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" 26 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h"
27 #include "third_party/webrtc/p2p/base/candidate.h"
28 28
29 using buzz::XmlElement; 29 using buzz::XmlElement;
30 30
31 namespace remoting { 31 namespace remoting {
32 namespace protocol { 32 namespace protocol {
33 33
34 namespace { 34 namespace {
35 // Delay after candidate creation before sending transport-info 35 // Delay after candidate creation before sending transport-info
36 // message. This is neccessary to be able to pack multiple candidates 36 // message. This is neccessary to be able to pack multiple candidates
37 // into one transport-info messages. The value needs to be greater 37 // into one transport-info messages. The value needs to be greater
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 } 673 }
674 } 674 }
675 675
676 bool JingleSession::is_session_active() { 676 bool JingleSession::is_session_active() {
677 return state_ == CONNECTING || state_ == ACCEPTING || state_ == CONNECTED || 677 return state_ == CONNECTING || state_ == ACCEPTING || state_ == CONNECTED ||
678 state_ == AUTHENTICATING || state_ == AUTHENTICATED; 678 state_ == AUTHENTICATING || state_ == AUTHENTICATED;
679 } 679 }
680 680
681 } // namespace protocol 681 } // namespace protocol
682 } // namespace remoting 682 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/jingle_messages_unittest.cc ('k') | remoting/protocol/libjingle_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698