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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCRtpContributingSource.cpp

Issue 2813443003: Revert of RTCRtpReceiver.getContributingSources() added. (Closed)
Patch Set: Created 3 years, 8 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
Index: third_party/WebKit/Source/modules/peerconnection/RTCRtpContributingSource.cpp
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCRtpContributingSource.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCRtpContributingSource.cpp
deleted file mode 100644
index d47b848631c939bbc037de3a0e8ce229d4b2e3f1..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/peerconnection/RTCRtpContributingSource.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "modules/peerconnection/RTCRtpContributingSource.h"
-
-#include "modules/peerconnection/RTCRtpReceiver.h"
-#include "public/platform/WebRTCRtpContributingSource.h"
-
-namespace blink {
-
-RTCRtpContributingSource::RTCRtpContributingSource(
- RTCRtpReceiver* receiver,
- const WebRTCRtpContributingSource& webContributingSource)
- : receiver_(receiver),
- timestamp_ms_(webContributingSource.TimestampMs()),
- source_(webContributingSource.Source()) {
- DCHECK(receiver_);
-}
-
-void RTCRtpContributingSource::UpdateMembers(
- const WebRTCRtpContributingSource& webContributingSource) {
- timestamp_ms_ = webContributingSource.TimestampMs();
- DCHECK_EQ(webContributingSource.Source(), source_);
-}
-
-double RTCRtpContributingSource::timestamp() {
- receiver_->UpdateSourcesIfNeeded();
- return timestamp_ms_;
-}
-
-uint32_t RTCRtpContributingSource::source() const {
- // Skip |receiver_->UpdateSourcesIfNeeded()|, |source_| is a constant.
- return source_;
-}
-
-DEFINE_TRACE(RTCRtpContributingSource) {
- visitor->Trace(receiver_);
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698