Chromium Code Reviews| Index: third_party/WebKit/Source/modules/peerconnection/RTCRtpContributingSource.h |
| diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCRtpContributingSource.h b/third_party/WebKit/Source/modules/peerconnection/RTCRtpContributingSource.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6a5c405193455f55dfbdcfb5b68bf34c225a034a |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/modules/peerconnection/RTCRtpContributingSource.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef RTCRtpContributingSource_h |
| +#define RTCRtpContributingSource_h |
| + |
| +#include "bindings/core/v8/ScriptWrappable.h" |
| +#include "platform/heap/GarbageCollected.h" |
| +#include "platform/heap/Member.h" |
| +#include "platform/heap/Visitor.h" |
| + |
| +namespace blink { |
| + |
| +class RTCRtpReceiver; |
| +class WebRTCRtpContributingSource; |
| + |
| +// https://w3c.github.io/webrtc-pc/#dom-rtcrtpcontributingsource |
| +class RTCRtpContributingSource final |
| + : public GarbageCollectedFinalized<RTCRtpContributingSource>, |
| + public ScriptWrappable { |
| + DEFINE_WRAPPERTYPEINFO(); |
| + |
| + public: |
| + RTCRtpContributingSource(RTCRtpReceiver*, const WebRTCRtpContributingSource&); |
| + 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.
|
| + |
| + double timestamp(); |
| + uint32_t source() const; |
| + |
| + DECLARE_VIRTUAL_TRACE(); |
| + |
| + private: |
| + Member<RTCRtpReceiver> m_receiver; |
| + double m_timestampMs; |
| + const uint32_t m_source; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // RTCRtpContributingSource_h |