OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 virtual void OnIceGatheringChange( | 401 virtual void OnIceGatheringChange( |
402 PeerConnectionInterface::IceGatheringState new_state) {} | 402 PeerConnectionInterface::IceGatheringState new_state) {} |
403 | 403 |
404 // New Ice candidate have been found. | 404 // New Ice candidate have been found. |
405 virtual void OnIceCandidate(const IceCandidateInterface* candidate) = 0; | 405 virtual void OnIceCandidate(const IceCandidateInterface* candidate) = 0; |
406 | 406 |
407 // TODO(bemasc): Remove this once callers transition to OnIceGatheringChange. | 407 // TODO(bemasc): Remove this once callers transition to OnIceGatheringChange. |
408 // All Ice candidates have been found. | 408 // All Ice candidates have been found. |
409 virtual void OnIceComplete() {} | 409 virtual void OnIceComplete() {} |
410 | 410 |
| 411 // Called when the ICE transport flakiness changes. |
| 412 virtual void OnIceFlakinessChange(bool flaky) {} |
| 413 |
411 protected: | 414 protected: |
412 // Dtor protected as objects shouldn't be deleted via this interface. | 415 // Dtor protected as objects shouldn't be deleted via this interface. |
413 ~PeerConnectionObserver() {} | 416 ~PeerConnectionObserver() {} |
414 }; | 417 }; |
415 | 418 |
416 // Factory class used for creating cricket::PortAllocator that is used | 419 // Factory class used for creating cricket::PortAllocator that is used |
417 // for ICE negotiation. | 420 // for ICE negotiation. |
418 class PortAllocatorFactoryInterface : public rtc::RefCountInterface { | 421 class PortAllocatorFactoryInterface : public rtc::RefCountInterface { |
419 public: | 422 public: |
420 struct StunConfiguration { | 423 struct StunConfiguration { |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 CreatePeerConnectionFactory( | 622 CreatePeerConnectionFactory( |
620 rtc::Thread* worker_thread, | 623 rtc::Thread* worker_thread, |
621 rtc::Thread* signaling_thread, | 624 rtc::Thread* signaling_thread, |
622 AudioDeviceModule* default_adm, | 625 AudioDeviceModule* default_adm, |
623 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 626 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
624 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 627 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
625 | 628 |
626 } // namespace webrtc | 629 } // namespace webrtc |
627 | 630 |
628 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ | 631 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |