Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |