| 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 RTCRtpContributingSource_h | |
| 6 #define RTCRtpContributingSource_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 | |
| 13 namespace blink { | |
| 14 | |
| 15 class RTCRtpReceiver; | |
| 16 class WebRTCRtpContributingSource; | |
| 17 | |
| 18 // https://w3c.github.io/webrtc-pc/#dom-rtcrtpcontributingsource | |
| 19 class RTCRtpContributingSource final | |
| 20 : public GarbageCollectedFinalized<RTCRtpContributingSource>, | |
| 21 public ScriptWrappable { | |
| 22 DEFINE_WRAPPERTYPEINFO(); | |
| 23 | |
| 24 public: | |
| 25 RTCRtpContributingSource(RTCRtpReceiver*, const WebRTCRtpContributingSource&); | |
| 26 // The source's source ID must match |source|. | |
| 27 void UpdateMembers(const WebRTCRtpContributingSource&); | |
| 28 | |
| 29 double timestamp(); | |
| 30 uint32_t source() const; | |
| 31 | |
| 32 DECLARE_VIRTUAL_TRACE(); | |
| 33 | |
| 34 private: | |
| 35 Member<RTCRtpReceiver> receiver_; | |
| 36 double timestamp_ms_; | |
| 37 const uint32_t source_; | |
| 38 }; | |
| 39 | |
| 40 } // namespace blink | |
| 41 | |
| 42 #endif // RTCRtpContributingSource_h | |
| OLD | NEW |