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

Unified Diff: webrtc/pc/channelmanager.cc

Issue 2622613004: Refactoring of RTCP options in BaseChannel. (Closed)
Patch Set: Minor renaming/adding a comment, which makes sense to do after this refactoring. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/pc/channelmanager.h ('k') | webrtc/pc/channelmanager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/channelmanager.cc
diff --git a/webrtc/pc/channelmanager.cc b/webrtc/pc/channelmanager.cc
index f8ed7702d7fd61d242051a414d33749f9c985333..02a53f8877300b266c74402c090e3b93ede01140 100644
--- a/webrtc/pc/channelmanager.cc
+++ b/webrtc/pc/channelmanager.cc
@@ -212,14 +212,14 @@ VoiceChannel* ChannelManager::CreateVoiceChannel(
rtc::Thread* signaling_thread,
const std::string& content_name,
const std::string* bundle_transport_name,
- bool rtcp,
+ bool rtcp_mux_required,
bool srtp_required,
const AudioOptions& options) {
return worker_thread_->Invoke<VoiceChannel*>(
RTC_FROM_HERE,
Bind(&ChannelManager::CreateVoiceChannel_w, this, media_controller,
rtp_transport, rtcp_transport, signaling_thread, content_name,
- bundle_transport_name, rtcp, srtp_required, options));
+ bundle_transport_name, rtcp_mux_required, srtp_required, options));
}
VoiceChannel* ChannelManager::CreateVoiceChannel_w(
@@ -229,7 +229,7 @@ VoiceChannel* ChannelManager::CreateVoiceChannel_w(
rtc::Thread* signaling_thread,
const std::string& content_name,
const std::string* bundle_transport_name,
- bool rtcp,
+ bool rtcp_mux_required,
bool srtp_required,
const AudioOptions& options) {
RTC_DCHECK(initialized_);
@@ -243,7 +243,7 @@ VoiceChannel* ChannelManager::CreateVoiceChannel_w(
VoiceChannel* voice_channel = new VoiceChannel(
worker_thread_, network_thread_, signaling_thread, media_engine_.get(),
- media_channel, content_name, rtcp, srtp_required);
+ media_channel, content_name, rtcp_mux_required, srtp_required);
voice_channel->SetCryptoOptions(crypto_options_);
if (!voice_channel->Init_w(rtp_transport, rtcp_transport)) {
@@ -284,14 +284,14 @@ VideoChannel* ChannelManager::CreateVideoChannel(
rtc::Thread* signaling_thread,
const std::string& content_name,
const std::string* bundle_transport_name,
- bool rtcp,
+ bool rtcp_mux_required,
bool srtp_required,
const VideoOptions& options) {
return worker_thread_->Invoke<VideoChannel*>(
RTC_FROM_HERE,
Bind(&ChannelManager::CreateVideoChannel_w, this, media_controller,
rtp_transport, rtcp_transport, signaling_thread, content_name,
- bundle_transport_name, rtcp, srtp_required, options));
+ bundle_transport_name, rtcp_mux_required, srtp_required, options));
}
VideoChannel* ChannelManager::CreateVideoChannel_w(
@@ -301,7 +301,7 @@ VideoChannel* ChannelManager::CreateVideoChannel_w(
rtc::Thread* signaling_thread,
const std::string& content_name,
const std::string* bundle_transport_name,
- bool rtcp,
+ bool rtcp_mux_required,
bool srtp_required,
const VideoOptions& options) {
RTC_DCHECK(initialized_);
@@ -313,9 +313,9 @@ VideoChannel* ChannelManager::CreateVideoChannel_w(
return NULL;
}
- VideoChannel* video_channel =
- new VideoChannel(worker_thread_, network_thread_, signaling_thread,
- media_channel, content_name, rtcp, srtp_required);
+ VideoChannel* video_channel = new VideoChannel(
+ worker_thread_, network_thread_, signaling_thread, media_channel,
+ content_name, rtcp_mux_required, srtp_required);
video_channel->SetCryptoOptions(crypto_options_);
if (!video_channel->Init_w(rtp_transport, rtcp_transport)) {
delete video_channel;
@@ -356,13 +356,13 @@ RtpDataChannel* ChannelManager::CreateRtpDataChannel(
rtc::Thread* signaling_thread,
const std::string& content_name,
const std::string* bundle_transport_name,
- bool rtcp,
+ bool rtcp_mux_required,
bool srtp_required) {
return worker_thread_->Invoke<RtpDataChannel*>(
RTC_FROM_HERE,
Bind(&ChannelManager::CreateRtpDataChannel_w, this, media_controller,
rtp_transport, rtcp_transport, signaling_thread, content_name,
- bundle_transport_name, rtcp, srtp_required));
+ bundle_transport_name, rtcp_mux_required, srtp_required));
}
RtpDataChannel* ChannelManager::CreateRtpDataChannel_w(
@@ -372,7 +372,7 @@ RtpDataChannel* ChannelManager::CreateRtpDataChannel_w(
rtc::Thread* signaling_thread,
const std::string& content_name,
const std::string* bundle_transport_name,
- bool rtcp,
+ bool rtcp_mux_required,
bool srtp_required) {
// This is ok to alloc from a thread other than the worker thread.
RTC_DCHECK(initialized_);
@@ -386,9 +386,9 @@ RtpDataChannel* ChannelManager::CreateRtpDataChannel_w(
return nullptr;
}
- RtpDataChannel* data_channel =
- new RtpDataChannel(worker_thread_, network_thread_, signaling_thread,
- media_channel, content_name, rtcp, srtp_required);
+ RtpDataChannel* data_channel = new RtpDataChannel(
+ worker_thread_, network_thread_, signaling_thread, media_channel,
+ content_name, rtcp_mux_required, srtp_required);
data_channel->SetCryptoOptions(crypto_options_);
if (!data_channel->Init_w(rtp_transport, rtcp_transport)) {
LOG(LS_WARNING) << "Failed to init data channel.";
« no previous file with comments | « webrtc/pc/channelmanager.h ('k') | webrtc/pc/channelmanager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698