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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCRtpSender.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/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..416c14104a61b2a14f803a3cebfddb8b3504f4dd
--- /dev/null
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCRtpSender.h
@@ -0,0 +1,39 @@
+// 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 "bindings/core/v8/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:
+ // Takes ownership of the sender.
Guido Urdaneta 2017/05/02 12:31:48 nit: The comment is redundant, since the parameter
hbos_chromium 2017/05/03 09:54:23 Done.
+ 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