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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 virtual std::vector<rtc::scoped_refptr<RtpReceiverInterface>> GetReceivers() | 467 virtual std::vector<rtc::scoped_refptr<RtpReceiverInterface>> GetReceivers() |
468 const { | 468 const { |
469 return std::vector<rtc::scoped_refptr<RtpReceiverInterface>>(); | 469 return std::vector<rtc::scoped_refptr<RtpReceiverInterface>>(); |
470 } | 470 } |
471 | 471 |
472 virtual bool GetStats(StatsObserver* observer, | 472 virtual bool GetStats(StatsObserver* observer, |
473 MediaStreamTrackInterface* track, | 473 MediaStreamTrackInterface* track, |
474 StatsOutputLevel level) = 0; | 474 StatsOutputLevel level) = 0; |
475 // Gets stats using the new stats collection API, see webrtc/api/stats/. These | 475 // Gets stats using the new stats collection API, see webrtc/api/stats/. These |
476 // will replace old stats collection API when the new API has matured enough. | 476 // will replace old stats collection API when the new API has matured enough. |
477 // Master bug: crbug.com/627816 | 477 // TODO(hbos): Default implementation that does nothing only exists as to not |
478 virtual void GetStats(RTCStatsCollectorCallback* callback) = 0; | 478 // break third party projects. As soon as they have been updated this should |
| 479 // be changed to "= 0;". |
| 480 virtual void GetStats(RTCStatsCollectorCallback* callback) {} |
479 | 481 |
480 virtual rtc::scoped_refptr<DataChannelInterface> CreateDataChannel( | 482 virtual rtc::scoped_refptr<DataChannelInterface> CreateDataChannel( |
481 const std::string& label, | 483 const std::string& label, |
482 const DataChannelInit* config) = 0; | 484 const DataChannelInit* config) = 0; |
483 | 485 |
484 virtual const SessionDescriptionInterface* local_description() const = 0; | 486 virtual const SessionDescriptionInterface* local_description() const = 0; |
485 virtual const SessionDescriptionInterface* remote_description() const = 0; | 487 virtual const SessionDescriptionInterface* remote_description() const = 0; |
486 | 488 |
487 // Create a new offer. | 489 // Create a new offer. |
488 // The CreateSessionDescriptionObserver callback will be called when done. | 490 // The CreateSessionDescriptionObserver callback will be called when done. |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 813 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
812 cricket::WebRtcVideoDecoderFactory* decoder_factory) { | 814 cricket::WebRtcVideoDecoderFactory* decoder_factory) { |
813 return CreatePeerConnectionFactory( | 815 return CreatePeerConnectionFactory( |
814 worker_and_network_thread, worker_and_network_thread, signaling_thread, | 816 worker_and_network_thread, worker_and_network_thread, signaling_thread, |
815 default_adm, encoder_factory, decoder_factory); | 817 default_adm, encoder_factory, decoder_factory); |
816 } | 818 } |
817 | 819 |
818 } // namespace webrtc | 820 } // namespace webrtc |
819 | 821 |
820 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ | 822 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |