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

Side by Side Diff: webrtc/call/flexfec_receive_stream_impl.cc

Issue 2729053002: Add location to RegisterModule (Closed)
Patch Set: Format BUILD.gn Created 3 years, 9 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/call/call.cc ('k') | webrtc/modules/audio_device/BUILD.gn » ('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 (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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
11 #include "webrtc/call/flexfec_receive_stream_impl.h" 11 #include "webrtc/call/flexfec_receive_stream_impl.h"
12 12
13 #include <string> 13 #include <string>
14 14
15 #include "webrtc/base/checks.h" 15 #include "webrtc/base/checks.h"
16 #include "webrtc/base/location.h"
16 #include "webrtc/base/logging.h" 17 #include "webrtc/base/logging.h"
17 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h" 18 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h"
18 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h" 19 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h"
19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" 20 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h"
20 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h" 21 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h"
21 #include "webrtc/modules/utility/include/process_thread.h" 22 #include "webrtc/modules/utility/include/process_thread.h"
22 #include "webrtc/system_wrappers/include/clock.h" 23 #include "webrtc/system_wrappers/include/clock.h"
23 24
24 namespace webrtc { 25 namespace webrtc {
25 26
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 rtp_rtcp_(CreateRtpRtcpModule(rtp_receive_statistics_.get(), 134 rtp_rtcp_(CreateRtpRtcpModule(rtp_receive_statistics_.get(),
134 config_.rtcp_send_transport, 135 config_.rtcp_send_transport,
135 rtt_stats)), 136 rtt_stats)),
136 process_thread_(process_thread) { 137 process_thread_(process_thread) {
137 LOG(LS_INFO) << "FlexfecReceiveStreamImpl: " << config_.ToString(); 138 LOG(LS_INFO) << "FlexfecReceiveStreamImpl: " << config_.ToString();
138 139
139 // RTCP reporting. 140 // RTCP reporting.
140 rtp_rtcp_->SetSendingMediaStatus(false); 141 rtp_rtcp_->SetSendingMediaStatus(false);
141 rtp_rtcp_->SetRTCPStatus(config_.rtcp_mode); 142 rtp_rtcp_->SetRTCPStatus(config_.rtcp_mode);
142 rtp_rtcp_->SetSSRC(config_.local_ssrc); 143 rtp_rtcp_->SetSSRC(config_.local_ssrc);
143 process_thread_->RegisterModule(rtp_rtcp_.get()); 144 process_thread_->RegisterModule(rtp_rtcp_.get(), RTC_FROM_HERE);
144 } 145 }
145 146
146 FlexfecReceiveStreamImpl::~FlexfecReceiveStreamImpl() { 147 FlexfecReceiveStreamImpl::~FlexfecReceiveStreamImpl() {
147 LOG(LS_INFO) << "~FlexfecReceiveStreamImpl: " << config_.ToString(); 148 LOG(LS_INFO) << "~FlexfecReceiveStreamImpl: " << config_.ToString();
148 Stop(); 149 Stop();
149 process_thread_->DeRegisterModule(rtp_rtcp_.get()); 150 process_thread_->DeRegisterModule(rtp_rtcp_.get());
150 } 151 }
151 152
152 void FlexfecReceiveStreamImpl::OnRtpPacket(const RtpPacketReceived& packet) { 153 void FlexfecReceiveStreamImpl::OnRtpPacket(const RtpPacketReceived& packet) {
153 { 154 {
(...skipping 28 matching lines...) Expand all
182 started_ = false; 183 started_ = false;
183 } 184 }
184 185
185 // TODO(brandtr): Implement this member function when we have designed the 186 // TODO(brandtr): Implement this member function when we have designed the
186 // stats for FlexFEC. 187 // stats for FlexFEC.
187 FlexfecReceiveStreamImpl::Stats FlexfecReceiveStreamImpl::GetStats() const { 188 FlexfecReceiveStreamImpl::Stats FlexfecReceiveStreamImpl::GetStats() const {
188 return FlexfecReceiveStream::Stats(); 189 return FlexfecReceiveStream::Stats();
189 } 190 }
190 191
191 } // namespace webrtc 192 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/call/call.cc ('k') | webrtc/modules/audio_device/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698