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 RTCRtpContributingSource& operator=(const WebRTCRtpContributingSource&); | |
Guido Urdaneta
2017/04/06 12:54:56
An explicit method would be clearer than the assig
hbos_chromium
2017/04/06 14:49:37
Done.
| |
27 | |
28 double timestamp(); | |
29 uint32_t source() const; | |
30 | |
31 DECLARE_VIRTUAL_TRACE(); | |
32 | |
33 private: | |
34 Member<RTCRtpReceiver> m_receiver; | |
35 double m_timestampMs; | |
36 const uint32_t m_source; | |
37 }; | |
38 | |
39 } // namespace blink | |
40 | |
41 #endif // RTCRtpContributingSource_h | |
OLD | NEW |