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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
487 // Returns the current IceState. | 487 // Returns the current IceState. |
488 virtual IceState ice_state() = 0; | 488 virtual IceState ice_state() = 0; |
489 virtual IceConnectionState ice_connection_state() = 0; | 489 virtual IceConnectionState ice_connection_state() = 0; |
490 virtual IceGatheringState ice_gathering_state() = 0; | 490 virtual IceGatheringState ice_gathering_state() = 0; |
491 | 491 |
492 // Starts RtcEventLog using existing file. Takes ownership of |file| and | 492 // Starts RtcEventLog using existing file. Takes ownership of |file| and |
493 // passes it on to Call, which will take the ownership. If the | 493 // passes it on to Call, which will take the ownership. If the |
494 // operation fails the file will be closed. The logging will stop | 494 // operation fails the file will be closed. The logging will stop |
495 // automatically after 10 minutes have passed, or when the StopRtcEventLog | 495 // automatically after 10 minutes have passed, or when the StopRtcEventLog |
496 // function is called. | 496 // function is called. |
497 virtual bool StartRtcEventLog(rtc::PlatformFile file, | 497 // TODO(ivoc): Make this pure virtual when Chrome is updated. |
498 int64_t max_size_bytes) = 0; | 498 virtual bool StartRtcEventLog(rtc::PlatformFile file, int64_t max_size_bytes); |
tommi
2016/06/29 14:54:28
where is the default implementation for the method
| |
499 | 499 |
500 // Stops logging the RtcEventLog. | 500 // Stops logging the RtcEventLog. |
501 virtual void StopRtcEventLog() = 0; | 501 // TODO(ivoc): Make this pure virtual when Chrome is updated. |
502 virtual void StopRtcEventLog(); | |
502 | 503 |
503 // Terminates all media and closes the transport. | 504 // Terminates all media and closes the transport. |
504 virtual void Close() = 0; | 505 virtual void Close() = 0; |
505 | 506 |
506 protected: | 507 protected: |
507 // Dtor protected as objects shouldn't be deleted via this interface. | 508 // Dtor protected as objects shouldn't be deleted via this interface. |
508 ~PeerConnectionInterface() {} | 509 ~PeerConnectionInterface() {} |
509 }; | 510 }; |
510 | 511 |
511 // PeerConnection callback interface. Application should implement these | 512 // PeerConnection callback interface. Application should implement these |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
726 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 727 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
727 cricket::WebRtcVideoDecoderFactory* decoder_factory) { | 728 cricket::WebRtcVideoDecoderFactory* decoder_factory) { |
728 return CreatePeerConnectionFactory( | 729 return CreatePeerConnectionFactory( |
729 worker_and_network_thread, worker_and_network_thread, signaling_thread, | 730 worker_and_network_thread, worker_and_network_thread, signaling_thread, |
730 default_adm, encoder_factory, decoder_factory); | 731 default_adm, encoder_factory, decoder_factory); |
731 } | 732 } |
732 | 733 |
733 } // namespace webrtc | 734 } // namespace webrtc |
734 | 735 |
735 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ | 736 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |