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 RTCRtpReceiver_h | |
| 6 #define RTCRtpReceiver_h | |
| 7 | |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | |
| 9 #include "modules/mediastream/MediaStreamTrack.h" | |
| 10 #include "platform/heap/GarbageCollected.h" | |
| 11 #include "platform/heap/Member.h" | |
| 12 #include "platform/heap/Visitor.h" | |
| 13 #include "public/platform/WebRTCRtpReceiver.h" | |
| 14 #include "wtf/text/WTFString.h" | |
|
foolip
2017/03/29 10:07:58
No String in this header. Are there other headers
hbos_chromium
2017/03/29 13:50:13
Done. (Removed WTFString, all others are used; Vis
| |
| 15 | |
| 16 namespace blink { | |
| 17 | |
| 18 // https://w3c.github.io/webrtc-pc/#rtcrtpreceiver-interface | |
| 19 class RTCRtpReceiver final : public GarbageCollectedFinalized<RTCRtpReceiver>, | |
| 20 public ScriptWrappable { | |
| 21 DEFINE_WRAPPERTYPEINFO(); | |
| 22 | |
| 23 public: | |
| 24 // Takes ownership of the receiver. | |
| 25 RTCRtpReceiver(std::unique_ptr<WebRTCRtpReceiver>, MediaStreamTrack*); | |
| 26 | |
| 27 MediaStreamTrack* track() const; | |
| 28 | |
| 29 DECLARE_VIRTUAL_TRACE(); | |
| 30 | |
| 31 private: | |
| 32 std::unique_ptr<WebRTCRtpReceiver> m_receiver; | |
| 33 Member<MediaStreamTrack> m_track; | |
| 34 }; | |
| 35 | |
| 36 } // namespace blink | |
| 37 | |
| 38 #endif // RTCRtpReceiver_h | |
| OLD | NEW |