| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef RTCRtpReceiver_h | 5 #ifndef RTCRtpReceiver_h |
| 6 #define RTCRtpReceiver_h | 6 #define RTCRtpReceiver_h |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "bindings/core/v8/ScriptWrappable.h" | |
| 11 #include "modules/mediastream/MediaStreamTrack.h" | 10 #include "modules/mediastream/MediaStreamTrack.h" |
| 12 #include "modules/peerconnection/RTCRtpContributingSource.h" | 11 #include "modules/peerconnection/RTCRtpContributingSource.h" |
| 12 #include "platform/bindings/ScriptWrappable.h" |
| 13 #include "platform/heap/GarbageCollected.h" | 13 #include "platform/heap/GarbageCollected.h" |
| 14 #include "platform/heap/Member.h" | 14 #include "platform/heap/Member.h" |
| 15 #include "platform/heap/Visitor.h" | 15 #include "platform/heap/Visitor.h" |
| 16 #include "public/platform/WebRTCRtpReceiver.h" | 16 #include "public/platform/WebRTCRtpReceiver.h" |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 // https://w3c.github.io/webrtc-pc/#rtcrtpreceiver-interface | 20 // https://w3c.github.io/webrtc-pc/#rtcrtpreceiver-interface |
| 21 class RTCRtpReceiver final : public GarbageCollectedFinalized<RTCRtpReceiver>, | 21 class RTCRtpReceiver final : public GarbageCollectedFinalized<RTCRtpReceiver>, |
| 22 public ScriptWrappable { | 22 public ScriptWrappable { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 50 WTF::UnsignedWithZeroKeyHashTraits<uint32_t>> | 50 WTF::UnsignedWithZeroKeyHashTraits<uint32_t>> |
| 51 contributing_sources_by_source_id_; | 51 contributing_sources_by_source_id_; |
| 52 // The current contributing sources (|getContributingSources|). | 52 // The current contributing sources (|getContributingSources|). |
| 53 HeapVector<Member<RTCRtpContributingSource>> contributing_sources_; | 53 HeapVector<Member<RTCRtpContributingSource>> contributing_sources_; |
| 54 bool contributing_sources_needs_updating_ = true; | 54 bool contributing_sources_needs_updating_ = true; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace blink | 57 } // namespace blink |
| 58 | 58 |
| 59 #endif // RTCRtpReceiver_h | 59 #endif // RTCRtpReceiver_h |
| OLD | NEW |