OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WebRTCRtpReceiver_h |
| 6 #define WebRTCRtpReceiver_h |
| 7 |
| 8 #include "WebCommon.h" |
| 9 #include "WebString.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class WebMediaStreamTrack; |
| 14 |
| 15 // Implementations of this interface keep the corresponding WebRTC-layer |
| 16 // receiver alive through reference counting. Multiple |WebRTCRtpReceiver|s |
| 17 // could reference the same receiver, see |id|. |
| 18 // https://w3c.github.io/webrtc-pc/#rtcrtpreceiver-interface |
| 19 class BLINK_PLATFORM_EXPORT WebRTCRtpReceiver { |
| 20 public: |
| 21 virtual ~WebRTCRtpReceiver(); |
| 22 |
| 23 // Two |WebRTCRtpReceiver|s referencing the same WebRTC-layer receiver have |
| 24 // the same |id|. |
| 25 virtual uintptr_t id() const = 0; |
| 26 virtual const WebMediaStreamTrack& track() const = 0; |
| 27 }; |
| 28 |
| 29 } // namespace blink |
| 30 |
| 31 #endif // WebRTCRtpReceiver_h |
OLD | NEW |