| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // Does not take ownership of observer. | 59 // Does not take ownership of observer. |
| 60 // Must call SetObserver(nullptr) before the observer is destroyed. | 60 // Must call SetObserver(nullptr) before the observer is destroyed. |
| 61 virtual void SetObserver(RtpReceiverObserverInterface* observer) = 0; | 61 virtual void SetObserver(RtpReceiverObserverInterface* observer) = 0; |
| 62 | 62 |
| 63 protected: | 63 protected: |
| 64 virtual ~RtpReceiverInterface() {} | 64 virtual ~RtpReceiverInterface() {} |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 // Define proxy for RtpReceiverInterface. | 67 // Define proxy for RtpReceiverInterface. |
| 68 BEGIN_SIGNALING_PROXY_MAP(RtpReceiver) | 68 BEGIN_SIGNALING_PROXY_MAP(RtpReceiver) |
| 69 PROXY_CONSTMETHOD0(rtc::scoped_refptr<MediaStreamTrackInterface>, track) | 69 PROXY_SIGNALING_THREAD_DESTRUCTOR() |
| 70 PROXY_CONSTMETHOD0(cricket::MediaType, media_type) | 70 PROXY_CONSTMETHOD0(rtc::scoped_refptr<MediaStreamTrackInterface>, track) |
| 71 PROXY_CONSTMETHOD0(std::string, id) | 71 PROXY_CONSTMETHOD0(cricket::MediaType, media_type) |
| 72 PROXY_CONSTMETHOD0(RtpParameters, GetParameters); | 72 PROXY_CONSTMETHOD0(std::string, id) |
| 73 PROXY_METHOD1(bool, SetParameters, const RtpParameters&) | 73 PROXY_CONSTMETHOD0(RtpParameters, GetParameters); |
| 74 PROXY_METHOD1(void, SetObserver, RtpReceiverObserverInterface*); | 74 PROXY_METHOD1(bool, SetParameters, const RtpParameters&) |
| 75 END_SIGNALING_PROXY() | 75 PROXY_METHOD1(void, SetObserver, RtpReceiverObserverInterface*); |
| 76 END_PROXY_MAP() |
| 76 | 77 |
| 77 } // namespace webrtc | 78 } // namespace webrtc |
| 78 | 79 |
| 79 #endif // WEBRTC_API_RTPRECEIVERINTERFACE_H_ | 80 #endif // WEBRTC_API_RTPRECEIVERINTERFACE_H_ |
| OLD | NEW |