Chromium Code Reviews| Index: third_party/WebKit/Source/modules/peerconnection/RTCRtpSender.h |
| diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCRtpSender.h b/third_party/WebKit/Source/modules/peerconnection/RTCRtpSender.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..416c14104a61b2a14f803a3cebfddb8b3504f4dd |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/modules/peerconnection/RTCRtpSender.h |
| @@ -0,0 +1,39 @@ |
| +// 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 RTCRtpSender_h |
| +#define RTCRtpSender_h |
| + |
| +#include "bindings/core/v8/ScriptWrappable.h" |
| +#include "platform/heap/GarbageCollected.h" |
| +#include "platform/heap/Member.h" |
| +#include "platform/heap/Visitor.h" |
| +#include "platform/wtf/text/WTFString.h" |
| +#include "public/platform/WebRTCRtpSender.h" |
| + |
| +namespace blink { |
| + |
| +class MediaStreamTrack; |
| + |
| +// https://w3c.github.io/webrtc-pc/#rtcrtpsender-interface |
| +class RTCRtpSender final : public GarbageCollectedFinalized<RTCRtpSender>, |
| + public ScriptWrappable { |
| + DEFINE_WRAPPERTYPEINFO(); |
| + |
| + public: |
| + // Takes ownership of the sender. |
|
Guido Urdaneta
2017/05/02 12:31:48
nit: The comment is redundant, since the parameter
hbos_chromium
2017/05/03 09:54:23
Done.
|
| + RTCRtpSender(std::unique_ptr<WebRTCRtpSender>, MediaStreamTrack*); |
| + |
| + MediaStreamTrack* track(); |
| + |
| + DECLARE_VIRTUAL_TRACE(); |
| + |
| + private: |
| + std::unique_ptr<WebRTCRtpSender> sender_; |
| + Member<MediaStreamTrack> track_; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // RTCRtpSender_h |