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" |
|
foolip
2017/03/29 10:07:58
No String in this header. Are there other headers
hbos_chromium
2017/03/29 13:50:13
Done. (Removed WTFString, all others are used; Vis
|
| + |
| +namespace blink { |
| + |
| +// https://w3c.github.io/webrtc-pc/#rtcrtpreceiver-interface |
| +class RTCRtpReceiver final : public GarbageCollectedFinalized<RTCRtpReceiver>, |
| + 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 |