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

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

Issue 2803693002: RTCRtpReceiver.getContributingSources() added. (Closed)
Patch Set: Addressed foolip's comments 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.h
diff --git a/content/renderer/media/webrtc/rtc_rtp_contributing_source.h b/content/renderer/media/webrtc/rtc_rtp_contributing_source.h
new file mode 100644
index 0000000000000000000000000000000000000000..85f53fed9953431734743b69ce3bab067e99bb56
--- /dev/null
+++ b/content/renderer/media/webrtc/rtc_rtp_contributing_source.h
@@ -0,0 +1,32 @@
+// 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.
+
+#ifndef CONTENT_RENDERER_MEDIA_WEBRTC_RTC_RTP_CONTRIBUTING_SOURCE_H_
+#define CONTENT_RENDERER_MEDIA_WEBRTC_RTC_RTP_CONTRIBUTING_SOURCE_H_
+
+#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "content/common/content_export.h"
+#include "third_party/WebKit/public/platform/WebRTCRtpContributingSource.h"
+#include "third_party/webrtc/api/rtpreceiverinterface.h"
+
+namespace content {
+
+class CONTENT_EXPORT RTCRtpContributingSource
+ : public blink::WebRTCRtpContributingSource {
+ public:
+ RTCRtpContributingSource(const webrtc::RtpSource& source);
Guido Urdaneta 2017/04/06 12:54:56 explicit
hbos_chromium 2017/04/06 14:49:37 Done.
+ ~RTCRtpContributingSource() override;
+
+ blink::WebRTCRtpContributingSourceType sourceType() const override;
+ double timestampMs() const override;
+ uint32_t source() const override;
+
+ private:
+ const webrtc::RtpSource source_;
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_MEDIA_WEBRTC_RTC_RTP_CONTRIBUTING_SOURCE_H_

Powered by Google App Engine
This is Rietveld 408576698