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

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

Issue 2749703005: RTCRtpSender with track behind RuntimeEnabled flag (Closed)
Patch Set: Fix win-specific compile error. 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/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..9b71298557faa6a0b52d49aa663955d9b3c03a97
--- /dev/null
+++ b/third_party/WebKit/public/platform/WebRTCRtpSender.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 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 |WebRtcSender|s referencing the same WebRTC-layer sender have the same
Guido Urdaneta 2017/05/02 12:31:48 WebRtcSender -> WebRTCRtpSender
hbos_chromium 2017/05/03 09:54:24 Done.
+ // |id|.
+ virtual uintptr_t Id() const = 0;
+ virtual const WebMediaStreamTrack* Track() const = 0;
+};
+
+} // namespace blink
+
+#endif // WebRTCRtpSender_h

Powered by Google App Engine
This is Rietveld 408576698