Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 | 86 |
| 87 virtual WebRtcSession* session() { return session_.get(); } | 87 virtual WebRtcSession* session() { return session_.get(); } |
| 88 | 88 |
| 89 rtc::scoped_refptr<DtmfSenderInterface> CreateDtmfSender( | 89 rtc::scoped_refptr<DtmfSenderInterface> CreateDtmfSender( |
| 90 AudioTrackInterface* track) override; | 90 AudioTrackInterface* track) override; |
| 91 | 91 |
| 92 rtc::scoped_refptr<RtpSenderInterface> CreateSender( | 92 rtc::scoped_refptr<RtpSenderInterface> CreateSender( |
| 93 const std::string& kind, | 93 const std::string& kind, |
| 94 const std::string& stream_id) override; | 94 const std::string& stream_id) override; |
| 95 | 95 |
| 96 std::vector<rtc::scoped_refptr<RtpSenderInterface>> GetSenders() | 96 // Virtual for unit tests. |
| 97 virtual std::vector<rtc::scoped_refptr<RtpSenderInterface>> GetSenders() | |
|
Taylor Brandstetter
2017/01/04 00:36:55
These are already virtual (hence "override" at the
| |
| 97 const override; | 98 const override; |
| 98 std::vector<rtc::scoped_refptr<RtpReceiverInterface>> GetReceivers() | 99 virtual std::vector<rtc::scoped_refptr<RtpReceiverInterface>> GetReceivers() |
| 99 const override; | 100 const override; |
| 100 | 101 |
| 101 rtc::scoped_refptr<DataChannelInterface> CreateDataChannel( | 102 rtc::scoped_refptr<DataChannelInterface> CreateDataChannel( |
| 102 const std::string& label, | 103 const std::string& label, |
| 103 const DataChannelInit* config) override; | 104 const DataChannelInit* config) override; |
| 104 bool GetStats(StatsObserver* observer, | 105 bool GetStats(StatsObserver* observer, |
| 105 webrtc::MediaStreamTrackInterface* track, | 106 webrtc::MediaStreamTrackInterface* track, |
| 106 StatsOutputLevel level) override; | 107 StatsOutputLevel level) override; |
| 107 void GetStats(RTCStatsCollectorCallback* callback) override; | 108 void GetStats(RTCStatsCollectorCallback* callback) override; |
| 108 | 109 |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 434 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>> | 435 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>> |
| 435 receivers_; | 436 receivers_; |
| 436 std::unique_ptr<WebRtcSession> session_; | 437 std::unique_ptr<WebRtcSession> session_; |
| 437 std::unique_ptr<StatsCollector> stats_; | 438 std::unique_ptr<StatsCollector> stats_; |
| 438 rtc::scoped_refptr<RTCStatsCollector> stats_collector_; | 439 rtc::scoped_refptr<RTCStatsCollector> stats_collector_; |
| 439 }; | 440 }; |
| 440 | 441 |
| 441 } // namespace webrtc | 442 } // namespace webrtc |
| 442 | 443 |
| 443 #endif // WEBRTC_API_PEERCONNECTION_H_ | 444 #endif // WEBRTC_API_PEERCONNECTION_H_ |
| OLD | NEW |