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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCRtpSender.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
Index: third_party/WebKit/Source/modules/peerconnection/RTCRtpSender.h
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCRtpSender.h b/third_party/WebKit/Source/modules/peerconnection/RTCRtpSender.h
new file mode 100644
index 0000000000000000000000000000000000000000..ce79a2cc28788343930342b4caae19accd1aede4
--- /dev/null
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCRtpSender.h
@@ -0,0 +1,38 @@
+// 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 RTCRtpSender_h
+#define RTCRtpSender_h
+
+#include "platform/bindings/ScriptWrappable.h"
+#include "platform/heap/GarbageCollected.h"
+#include "platform/heap/Member.h"
+#include "platform/heap/Visitor.h"
+#include "platform/wtf/text/WTFString.h"
+#include "public/platform/WebRTCRtpSender.h"
+
+namespace blink {
+
+class MediaStreamTrack;
+
+// https://w3c.github.io/webrtc-pc/#rtcrtpsender-interface
+class RTCRtpSender final : public GarbageCollectedFinalized<RTCRtpSender>,
+ public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+
+ public:
+ RTCRtpSender(std::unique_ptr<WebRTCRtpSender>, MediaStreamTrack*);
+
+ MediaStreamTrack* track();
+
+ DECLARE_VIRTUAL_TRACE();
+
+ private:
+ std::unique_ptr<WebRTCRtpSender> sender_;
+ Member<MediaStreamTrack> track_;
+};
+
+} // namespace blink
+
+#endif // RTCRtpSender_h

Powered by Google App Engine
This is Rietveld 408576698