| Index: third_party/WebKit/Source/modules/peerconnection/RTCRtpReceiver.cpp
|
| diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCRtpReceiver.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCRtpReceiver.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e929cb6b097b02b5cd35cc05d06d702514c9511e
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/peerconnection/RTCRtpReceiver.cpp
|
| @@ -0,0 +1,27 @@
|
| +// 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.
|
| +
|
| +#include "modules/peerconnection/RTCRtpReceiver.h"
|
| +
|
| +#include "wtf/text/WTFString.h"
|
| +
|
| +namespace blink {
|
| +
|
| +RTCRtpReceiver::RTCRtpReceiver(std::unique_ptr<WebRTCRtpReceiver> receiver,
|
| + MediaStreamTrack* track)
|
| + : m_receiver(std::move(receiver)), m_track(track) {
|
| + DCHECK(m_receiver);
|
| + DCHECK(m_track);
|
| + DCHECK_EQ(static_cast<String>(m_receiver->track().id()), m_track->id());
|
| +}
|
| +
|
| +MediaStreamTrack* RTCRtpReceiver::track() const {
|
| + return m_track;
|
| +}
|
| +
|
| +DEFINE_TRACE(RTCRtpReceiver) {
|
| + visitor->trace(m_track);
|
| +}
|
| +
|
| +} // namespace blink
|
|
|