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

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

Issue 2749703005: RTCRtpSender with track behind RuntimeEnabled flag (Closed)
Patch Set: external/wpt/webrtc/RTCPeerConnection-idl-expected.txt updated passing 2 more tests Created 3 years, 7 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/WebRTCRtpSender.h
diff --git a/third_party/WebKit/public/platform/WebRTCRtpSender.h b/third_party/WebKit/public/platform/WebRTCRtpSender.h
new file mode 100644
index 0000000000000000000000000000000000000000..ebf9523150ffbea33d446827874b481bdd919cc4
--- /dev/null
+++ b/third_party/WebKit/public/platform/WebRTCRtpSender.h
@@ -0,0 +1,32 @@
+// 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 WebRTCRtpSender_h
+#define WebRTCRtpSender_h
+
+#include "WebCommon.h"
+#include "WebString.h"
+
+namespace blink {
+
+class WebMediaStreamTrack;
+
+// Implementations of this interface keep the corresponding WebRTC-layer sender
+// alive through reference counting. Multiple |WebRTCRtpSender|s could reference
+// the same sender; check for equality with |id|.
+// https://w3c.github.io/webrtc-pc/#rtcrtpsender-interface
+class BLINK_PLATFORM_EXPORT WebRTCRtpSender {
+ public:
+ virtual ~WebRTCRtpSender();
+
+ // Two |WebRTCRtpSender|s referencing the same WebRTC-layer sender have the
+ // same |id|. IDs are guaranteed to be unique amongst senders but they are
+ // allowed to be reused after a sender is destroyed.
+ virtual uintptr_t Id() const = 0;
+ virtual const WebMediaStreamTrack* Track() const = 0;
+};
+
+} // namespace blink
+
+#endif // WebRTCRtpSender_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