Chromium Code Reviews| Index: third_party/WebKit/Source/modules/peerconnection/RTCRtpReceiver.h |
| diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCRtpReceiver.h b/third_party/WebKit/Source/modules/peerconnection/RTCRtpReceiver.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..554ef88aad30277fa80affdff29116ef18632fa7 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/modules/peerconnection/RTCRtpReceiver.h |
| @@ -0,0 +1,38 @@ |
| +// 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 RTCRtpReceiver_h |
| +#define RTCRtpReceiver_h |
| + |
| +#include "bindings/core/v8/ScriptWrappable.h" |
| +#include "modules/mediastream/MediaStreamTrack.h" |
| +#include "platform/heap/GarbageCollected.h" |
| +#include "platform/heap/Member.h" |
| +#include "platform/heap/Visitor.h" |
| +#include "public/platform/WebRTCRtpReceiver.h" |
| +#include "wtf/text/WTFString.h" |
| + |
| +namespace blink { |
| + |
| +// https://w3c.github.io/webrtc-pc/#rtcrtpreceiver-interface |
| +class RTCRtpReceiver final : public GarbageCollectedFinalized<RTCRtpReceiver>, |
|
Taylor_Brandstetter
2017/03/24 18:13:07
Is there any way this and WebRTCRtpReceiver could
hbos_chromium
2017/03/27 14:55:19
It has to do with how blink/chromium/webrtc layers
Taylor_Brandstetter
2017/03/27 21:39:02
That answers my question; thanks! Does this plan h
|
| + public ScriptWrappable { |
| + DEFINE_WRAPPERTYPEINFO(); |
| + |
| + public: |
| + // Takes ownership of the receiver. |
| + RTCRtpReceiver(std::unique_ptr<WebRTCRtpReceiver>, MediaStreamTrack*); |
| + |
| + MediaStreamTrack* track() const; |
| + |
| + DECLARE_VIRTUAL_TRACE(); |
| + |
| + private: |
| + std::unique_ptr<WebRTCRtpReceiver> m_receiver; |
| + Member<MediaStreamTrack> m_track; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // RTCRtpReceiver_h |