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

Unified Diff: third_party/WebKit/public/platform/WebRTCRtpReceiver.h

Issue 2759953003: Interface RTCRtpReceiver and RTCPeerConnection.getReceivers() added. (Closed)
Patch Set: DISALLOW_COPY_AND_ASSIGN Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebRTCRtpReceiver.h
diff --git a/third_party/WebKit/public/platform/WebRTCRtpReceiver.h b/third_party/WebKit/public/platform/WebRTCRtpReceiver.h
new file mode 100644
index 0000000000000000000000000000000000000000..36c4da8fb43620628b500c6319d3837a76411c44
--- /dev/null
+++ b/third_party/WebKit/public/platform/WebRTCRtpReceiver.h
@@ -0,0 +1,31 @@
+// 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 WebRTCRtpReceiver_h
+#define WebRTCRtpReceiver_h
+
+#include "WebCommon.h"
+#include "WebString.h"
+
+namespace blink {
+
+class WebMediaStreamTrack;
+
+// Implementations of this interface keep the corresponding WebRTC-layer
+// receiver alive through reference counting. Multiple |WebRTCRtpReceiver|s
+// could reference the same receiver, see |id|.
+// https://w3c.github.io/webrtc-pc/#rtcrtpreceiver-interface
+class BLINK_PLATFORM_EXPORT WebRTCRtpReceiver {
+ public:
+ virtual ~WebRTCRtpReceiver();
+
+ // Two |WebRTCRtpReceiver|s referencing the same WebRTC-layer receiver have
+ // the same |id|.
+ virtual uintptr_t id() const = 0;
+ virtual const WebMediaStreamTrack& track() const = 0;
+};
+
+} // namespace blink
+
+#endif // WebRTCRtpReceiver_h
« no previous file with comments | « third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698