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

Unified Diff: third_party/WebKit/public/platform/WebRTCRtpContributingSource.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: third_party/WebKit/public/platform/WebRTCRtpContributingSource.h
diff --git a/third_party/WebKit/public/platform/WebRTCRtpContributingSource.h b/third_party/WebKit/public/platform/WebRTCRtpContributingSource.h
new file mode 100644
index 0000000000000000000000000000000000000000..2970beb1d7f0ba673fcbca0c04515c2c6791d633
--- /dev/null
+++ b/third_party/WebKit/public/platform/WebRTCRtpContributingSource.h
@@ -0,0 +1,29 @@
+// 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.
+
+#ifndef WebRTCRtpContributingSource_h
+#define WebRTCRtpContributingSource_h
+
+#include "WebCommon.h"
+
+namespace blink {
+
+enum class WebRTCRtpContributingSourceType {
+ SSRC,
+ CSRC,
+};
+
+// https://w3c.github.io/webrtc-pc/#dom-rtcrtpcontributingsource
+class BLINK_PLATFORM_EXPORT WebRTCRtpContributingSource {
+ public:
+ virtual ~WebRTCRtpContributingSource();
+
+ virtual WebRTCRtpContributingSourceType sourceType() const = 0;
+ virtual double timestampMs() const = 0;
+ virtual uint32_t source() const = 0;
+};
+
+} // namespace blink
+
+#endif // WebRTCRtpContributingSource_h

Powered by Google App Engine
This is Rietveld 408576698