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

Unified Diff: webrtc/call/flexfec_receive_stream_impl.cc

Issue 2561123002: Move FlexfecReceiveStream from api/call/ to call/. (Closed)
Patch Set: Rebase. Created 4 years 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/call/flexfec_receive_stream_impl.h ('k') | webrtc/call/flexfec_receive_stream_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/call/flexfec_receive_stream_impl.cc
diff --git a/webrtc/call/flexfec_receive_stream.cc b/webrtc/call/flexfec_receive_stream_impl.cc
similarity index 84%
rename from webrtc/call/flexfec_receive_stream.cc
rename to webrtc/call/flexfec_receive_stream_impl.cc
index 61a31418ccda31af061dbb8e50a2dd4b030bf649..e0e49c1a2ec24b9ae2651fa833360ca476f608c9 100644
--- a/webrtc/call/flexfec_receive_stream.cc
+++ b/webrtc/call/flexfec_receive_stream_impl.cc
@@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "webrtc/call/flexfec_receive_stream.h"
+#include "webrtc/call/flexfec_receive_stream_impl.h"
#include "webrtc/base/checks.h"
#include "webrtc/base/logging.h"
@@ -84,25 +84,24 @@ std::unique_ptr<FlexfecReceiver> MaybeCreateFlexfecReceiver(
} // namespace
-namespace internal {
-
-FlexfecReceiveStream::FlexfecReceiveStream(
+FlexfecReceiveStreamImpl::FlexfecReceiveStreamImpl(
const Config& config,
RecoveredPacketReceiver* recovered_packet_callback)
: started_(false),
config_(config),
receiver_(
MaybeCreateFlexfecReceiver(config_, recovered_packet_callback)) {
- LOG(LS_INFO) << "FlexfecReceiveStream: " << config_.ToString();
+ LOG(LS_INFO) << "FlexfecReceiveStreamImpl: " << config_.ToString();
}
-FlexfecReceiveStream::~FlexfecReceiveStream() {
- LOG(LS_INFO) << "~FlexfecReceiveStream: " << config_.ToString();
+FlexfecReceiveStreamImpl::~FlexfecReceiveStreamImpl() {
+ LOG(LS_INFO) << "~FlexfecReceiveStreamImpl: " << config_.ToString();
Stop();
}
-bool FlexfecReceiveStream::AddAndProcessReceivedPacket(const uint8_t* packet,
- size_t packet_length) {
+bool FlexfecReceiveStreamImpl::AddAndProcessReceivedPacket(
+ const uint8_t* packet,
+ size_t packet_length) {
{
rtc::CritScope cs(&crit_);
if (!started_)
@@ -113,22 +112,20 @@ bool FlexfecReceiveStream::AddAndProcessReceivedPacket(const uint8_t* packet,
return receiver_->AddAndProcessReceivedPacket(packet, packet_length);
}
-void FlexfecReceiveStream::Start() {
+void FlexfecReceiveStreamImpl::Start() {
rtc::CritScope cs(&crit_);
started_ = true;
}
-void FlexfecReceiveStream::Stop() {
+void FlexfecReceiveStreamImpl::Stop() {
rtc::CritScope cs(&crit_);
started_ = false;
}
// TODO(brandtr): Implement this member function when we have designed the
// stats for FlexFEC.
-FlexfecReceiveStream::Stats FlexfecReceiveStream::GetStats() const {
- return webrtc::FlexfecReceiveStream::Stats();
+FlexfecReceiveStreamImpl::Stats FlexfecReceiveStreamImpl::GetStats() const {
+ return FlexfecReceiveStream::Stats();
}
-} // namespace internal
-
} // namespace webrtc
« no previous file with comments | « webrtc/call/flexfec_receive_stream_impl.h ('k') | webrtc/call/flexfec_receive_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698