| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // See http://dev.w3.org/2011/webrtc/editor/webrtc.html#state-definitions . | 145 // See http://dev.w3.org/2011/webrtc/editor/webrtc.html#state-definitions . |
| 146 enum SignalingState { | 146 enum SignalingState { |
| 147 kStable, | 147 kStable, |
| 148 kHaveLocalOffer, | 148 kHaveLocalOffer, |
| 149 kHaveLocalPrAnswer, | 149 kHaveLocalPrAnswer, |
| 150 kHaveRemoteOffer, | 150 kHaveRemoteOffer, |
| 151 kHaveRemotePrAnswer, | 151 kHaveRemotePrAnswer, |
| 152 kClosed, | 152 kClosed, |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 // TODO(bemasc): Remove IceState when callers are changed to | |
| 156 // IceConnection/GatheringState. | |
| 157 enum IceState { | |
| 158 kIceNew, | |
| 159 kIceGathering, | |
| 160 kIceWaiting, | |
| 161 kIceChecking, | |
| 162 kIceConnected, | |
| 163 kIceCompleted, | |
| 164 kIceFailed, | |
| 165 kIceClosed, | |
| 166 }; | |
| 167 | |
| 168 enum IceGatheringState { | 155 enum IceGatheringState { |
| 169 kIceGatheringNew, | 156 kIceGatheringNew, |
| 170 kIceGatheringGathering, | 157 kIceGatheringGathering, |
| 171 kIceGatheringComplete | 158 kIceGatheringComplete |
| 172 }; | 159 }; |
| 173 | 160 |
| 174 enum IceConnectionState { | 161 enum IceConnectionState { |
| 175 kIceConnectionNew, | 162 kIceConnectionNew, |
| 176 kIceConnectionChecking, | 163 kIceConnectionChecking, |
| 177 kIceConnectionConnected, | 164 kIceConnectionConnected, |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 // Removes a group of remote candidates from the ICE agent. | 502 // Removes a group of remote candidates from the ICE agent. |
| 516 virtual bool RemoveIceCandidates( | 503 virtual bool RemoveIceCandidates( |
| 517 const std::vector<cricket::Candidate>& candidates) { | 504 const std::vector<cricket::Candidate>& candidates) { |
| 518 return false; | 505 return false; |
| 519 } | 506 } |
| 520 | 507 |
| 521 virtual void RegisterUMAObserver(UMAObserver* observer) = 0; | 508 virtual void RegisterUMAObserver(UMAObserver* observer) = 0; |
| 522 | 509 |
| 523 // Returns the current SignalingState. | 510 // Returns the current SignalingState. |
| 524 virtual SignalingState signaling_state() = 0; | 511 virtual SignalingState signaling_state() = 0; |
| 525 | |
| 526 // TODO(bemasc): Remove ice_state when callers are changed to | |
| 527 // IceConnection/GatheringState. | |
| 528 // Returns the current IceState. | |
| 529 virtual IceState ice_state() { | |
| 530 RTC_NOTREACHED(); | |
| 531 return kIceNew; | |
| 532 } | |
| 533 virtual IceConnectionState ice_connection_state() = 0; | 512 virtual IceConnectionState ice_connection_state() = 0; |
| 534 virtual IceGatheringState ice_gathering_state() = 0; | 513 virtual IceGatheringState ice_gathering_state() = 0; |
| 535 | 514 |
| 536 // Starts RtcEventLog using existing file. Takes ownership of |file| and | 515 // Starts RtcEventLog using existing file. Takes ownership of |file| and |
| 537 // passes it on to Call, which will take the ownership. If the | 516 // passes it on to Call, which will take the ownership. If the |
| 538 // operation fails the file will be closed. The logging will stop | 517 // operation fails the file will be closed. The logging will stop |
| 539 // automatically after 10 minutes have passed, or when the StopRtcEventLog | 518 // automatically after 10 minutes have passed, or when the StopRtcEventLog |
| 540 // function is called. | 519 // function is called. |
| 541 // TODO(ivoc): Make this pure virtual when Chrome is updated. | 520 // TODO(ivoc): Make this pure virtual when Chrome is updated. |
| 542 virtual bool StartRtcEventLog(rtc::PlatformFile file, | 521 virtual bool StartRtcEventLog(rtc::PlatformFile file, |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 757 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
| 779 cricket::WebRtcVideoDecoderFactory* decoder_factory) { | 758 cricket::WebRtcVideoDecoderFactory* decoder_factory) { |
| 780 return CreatePeerConnectionFactory( | 759 return CreatePeerConnectionFactory( |
| 781 worker_and_network_thread, worker_and_network_thread, signaling_thread, | 760 worker_and_network_thread, worker_and_network_thread, signaling_thread, |
| 782 default_adm, encoder_factory, decoder_factory); | 761 default_adm, encoder_factory, decoder_factory); |
| 783 } | 762 } |
| 784 | 763 |
| 785 } // namespace webrtc | 764 } // namespace webrtc |
| 786 | 765 |
| 787 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ | 766 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ |
| OLD | NEW |