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

Side by Side Diff: webrtc/pc/webrtcsession.cc

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: Rebase. Created 3 years, 6 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
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 1883 matching lines...) Expand 10 before | Expand all | Expand 10 after
1894 SignalDataChannelCreated(); 1894 SignalDataChannelCreated();
1895 1895
1896 return true; 1896 return true;
1897 } 1897 }
1898 1898
1899 Call::Stats WebRtcSession::GetCallStats() { 1899 Call::Stats WebRtcSession::GetCallStats() {
1900 if (!worker_thread()->IsCurrent()) { 1900 if (!worker_thread()->IsCurrent()) {
1901 return worker_thread()->Invoke<Call::Stats>( 1901 return worker_thread()->Invoke<Call::Stats>(
1902 RTC_FROM_HERE, rtc::Bind(&WebRtcSession::GetCallStats, this)); 1902 RTC_FROM_HERE, rtc::Bind(&WebRtcSession::GetCallStats, this));
1903 } 1903 }
1904 RTC_DCHECK(call_); 1904 if (!call_)
1905 return Call::Stats();
1905 return call_->GetStats(); 1906 return call_->GetStats();
1906 } 1907 }
1907 1908
1908 std::unique_ptr<SessionStats> WebRtcSession::GetStats_n( 1909 std::unique_ptr<SessionStats> WebRtcSession::GetStats_n(
1909 const ChannelNamePairs& channel_name_pairs) { 1910 const ChannelNamePairs& channel_name_pairs) {
1910 RTC_DCHECK(network_thread()->IsCurrent()); 1911 RTC_DCHECK(network_thread()->IsCurrent());
1911 std::unique_ptr<SessionStats> session_stats(new SessionStats()); 1912 std::unique_ptr<SessionStats> session_stats(new SessionStats());
1912 for (const auto channel_name_pair : { &channel_name_pairs.voice, 1913 for (const auto channel_name_pair : { &channel_name_pairs.voice,
1913 &channel_name_pairs.video, 1914 &channel_name_pairs.video,
1914 &channel_name_pairs.data }) { 1915 &channel_name_pairs.data }) {
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
2399 (rtp_data_channel_->rtcp_dtls_transport() != nullptr); 2400 (rtp_data_channel_->rtcp_dtls_transport() != nullptr);
2400 channel_manager_->DestroyRtpDataChannel(rtp_data_channel_.release()); 2401 channel_manager_->DestroyRtpDataChannel(rtp_data_channel_.release());
2401 transport_controller_->DestroyDtlsTransport( 2402 transport_controller_->DestroyDtlsTransport(
2402 transport_name, cricket::ICE_CANDIDATE_COMPONENT_RTP); 2403 transport_name, cricket::ICE_CANDIDATE_COMPONENT_RTP);
2403 if (need_to_delete_rtcp) { 2404 if (need_to_delete_rtcp) {
2404 transport_controller_->DestroyDtlsTransport( 2405 transport_controller_->DestroyDtlsTransport(
2405 transport_name, cricket::ICE_CANDIDATE_COMPONENT_RTCP); 2406 transport_name, cricket::ICE_CANDIDATE_COMPONENT_RTCP);
2406 } 2407 }
2407 } 2408 }
2408 } // namespace webrtc 2409 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/pc/test/mock_peerconnection.h ('k') | webrtc/sdk/android/src/jni/androidvideotracksource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698