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

Side by Side Diff: webrtc/api/peerconnection.cc

Issue 2361053003: Reland of "Remove the obsolete enum webrtc::PeerConnectionInterface::IceState." (Closed)
Patch Set: Created 4 years, 2 months 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
« no previous file with comments | « webrtc/api/peerconnection.h ('k') | webrtc/api/peerconnectioninterface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 turn_server.priority = priority--; 561 turn_server.priority = priority--;
562 } 562 }
563 return true; 563 return true;
564 } 564 }
565 565
566 PeerConnection::PeerConnection(PeerConnectionFactory* factory) 566 PeerConnection::PeerConnection(PeerConnectionFactory* factory)
567 : factory_(factory), 567 : factory_(factory),
568 observer_(NULL), 568 observer_(NULL),
569 uma_observer_(NULL), 569 uma_observer_(NULL),
570 signaling_state_(kStable), 570 signaling_state_(kStable),
571 ice_state_(kIceNew),
572 ice_connection_state_(kIceConnectionNew), 571 ice_connection_state_(kIceConnectionNew),
573 ice_gathering_state_(kIceGatheringNew), 572 ice_gathering_state_(kIceGatheringNew),
574 rtcp_cname_(GenerateRtcpCname()), 573 rtcp_cname_(GenerateRtcpCname()),
575 local_streams_(StreamCollection::Create()), 574 local_streams_(StreamCollection::Create()),
576 remote_streams_(StreamCollection::Create()) {} 575 remote_streams_(StreamCollection::Create()) {}
577 576
578 PeerConnection::~PeerConnection() { 577 PeerConnection::~PeerConnection() {
579 TRACE_EVENT0("webrtc", "PeerConnection::~PeerConnection"); 578 TRACE_EVENT0("webrtc", "PeerConnection::~PeerConnection");
580 RTC_DCHECK(signaling_thread()->IsCurrent()); 579 RTC_DCHECK(signaling_thread()->IsCurrent());
581 // Need to detach RTP senders/receivers from WebRtcSession, 580 // Need to detach RTP senders/receivers from WebRtcSession,
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 890
892 void PeerConnection::GetStats(RTCStatsCollectorCallback* callback) { 891 void PeerConnection::GetStats(RTCStatsCollectorCallback* callback) {
893 RTC_DCHECK(stats_collector_); 892 RTC_DCHECK(stats_collector_);
894 stats_collector_->GetStatsReport(callback); 893 stats_collector_->GetStatsReport(callback);
895 } 894 }
896 895
897 PeerConnectionInterface::SignalingState PeerConnection::signaling_state() { 896 PeerConnectionInterface::SignalingState PeerConnection::signaling_state() {
898 return signaling_state_; 897 return signaling_state_;
899 } 898 }
900 899
901 PeerConnectionInterface::IceState PeerConnection::ice_state() {
902 return ice_state_;
903 }
904
905 PeerConnectionInterface::IceConnectionState 900 PeerConnectionInterface::IceConnectionState
906 PeerConnection::ice_connection_state() { 901 PeerConnection::ice_connection_state() {
907 return ice_connection_state_; 902 return ice_connection_state_;
908 } 903 }
909 904
910 PeerConnectionInterface::IceGatheringState 905 PeerConnectionInterface::IceGatheringState
911 PeerConnection::ice_gathering_state() { 906 PeerConnection::ice_gathering_state() {
912 return ice_gathering_state_; 907 return ice_gathering_state_;
913 } 908 }
914 909
(...skipping 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after
2342 2337
2343 bool PeerConnection::StartRtcEventLog_w(rtc::PlatformFile file, 2338 bool PeerConnection::StartRtcEventLog_w(rtc::PlatformFile file,
2344 int64_t max_size_bytes) { 2339 int64_t max_size_bytes) {
2345 return media_controller_->call_w()->StartEventLog(file, max_size_bytes); 2340 return media_controller_->call_w()->StartEventLog(file, max_size_bytes);
2346 } 2341 }
2347 2342
2348 void PeerConnection::StopRtcEventLog_w() { 2343 void PeerConnection::StopRtcEventLog_w() {
2349 media_controller_->call_w()->StopEventLog(); 2344 media_controller_->call_w()->StopEventLog();
2350 } 2345 }
2351 } // namespace webrtc 2346 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/peerconnection.h ('k') | webrtc/api/peerconnectioninterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698