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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef RTCRtpSender_h
6 #define RTCRtpSender_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "platform/heap/GarbageCollected.h"
10 #include "platform/heap/Member.h"
11 #include "platform/heap/Visitor.h"
12 #include "platform/wtf/text/WTFString.h"
13 #include "public/platform/WebRTCRtpSender.h"
14
15 namespace blink {
16
17 class MediaStreamTrack;
18
19 // https://w3c.github.io/webrtc-pc/#rtcrtpsender-interface
20 class RTCRtpSender final : public GarbageCollectedFinalized<RTCRtpSender>,
21 public ScriptWrappable {
22 DEFINE_WRAPPERTYPEINFO();
23
24 public:
25 // 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.
26 RTCRtpSender(std::unique_ptr<WebRTCRtpSender>, MediaStreamTrack*);
27
28 MediaStreamTrack* track();
29
30 DECLARE_VIRTUAL_TRACE();
31
32 private:
33 std::unique_ptr<WebRTCRtpSender> sender_;
34 Member<MediaStreamTrack> track_;
35 };
36
37 } // namespace blink
38
39 #endif // RTCRtpSender_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698