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

Unified Diff: content/renderer/media/webrtc/rtc_rtp_contributing_source.cc

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: content/renderer/media/webrtc/rtc_rtp_contributing_source.cc
diff --git a/content/renderer/media/webrtc/rtc_rtp_contributing_source.cc b/content/renderer/media/webrtc/rtc_rtp_contributing_source.cc
deleted file mode 100644
index b259b9c52f4672e7bf5940cd6cfd9533c46d8845..0000000000000000000000000000000000000000
--- a/content/renderer/media/webrtc/rtc_rtp_contributing_source.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 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 "content/renderer/media/webrtc/rtc_rtp_contributing_source.h"
-
-#include "base/logging.h"
-#include "base/time/time.h"
-#include "third_party/webrtc/base/scoped_ref_ptr.h"
-
-namespace content {
-
-RTCRtpContributingSource::RTCRtpContributingSource(
- const webrtc::RtpSource& source)
- : source_(source) {}
-
-RTCRtpContributingSource::~RTCRtpContributingSource() {}
-
-blink::WebRTCRtpContributingSourceType RTCRtpContributingSource::SourceType()
- const {
- switch (source_.source_type()) {
- case webrtc::RtpSourceType::SSRC:
- return blink::WebRTCRtpContributingSourceType::SSRC;
- case webrtc::RtpSourceType::CSRC:
- return blink::WebRTCRtpContributingSourceType::CSRC;
- default:
- NOTREACHED();
- return blink::WebRTCRtpContributingSourceType::SSRC;
- }
-}
-
-double RTCRtpContributingSource::TimestampMs() const {
- return source_.timestamp_ms();
-}
-
-uint32_t RTCRtpContributingSource::Source() const {
- return source_.source_id();
-}
-
-} // namespace content
« no previous file with comments | « content/renderer/media/webrtc/rtc_rtp_contributing_source.h ('k') | content/renderer/media/webrtc/rtc_rtp_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698