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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 virtual void OnIceGatheringChange( | 404 virtual void OnIceGatheringChange( |
405 PeerConnectionInterface::IceGatheringState new_state) {} | 405 PeerConnectionInterface::IceGatheringState new_state) {} |
406 | 406 |
407 // New Ice candidate have been found. | 407 // New Ice candidate have been found. |
408 virtual void OnIceCandidate(const IceCandidateInterface* candidate) = 0; | 408 virtual void OnIceCandidate(const IceCandidateInterface* candidate) = 0; |
409 | 409 |
410 // TODO(bemasc): Remove this once callers transition to OnIceGatheringChange. | 410 // TODO(bemasc): Remove this once callers transition to OnIceGatheringChange. |
411 // All Ice candidates have been found. | 411 // All Ice candidates have been found. |
412 virtual void OnIceComplete() {} | 412 virtual void OnIceComplete() {} |
413 | 413 |
| 414 // Called when the ICE connection receiving status changes. |
| 415 virtual void OnIceConnectionReceivingChange(bool receiving) {} |
| 416 |
414 protected: | 417 protected: |
415 // Dtor protected as objects shouldn't be deleted via this interface. | 418 // Dtor protected as objects shouldn't be deleted via this interface. |
416 ~PeerConnectionObserver() {} | 419 ~PeerConnectionObserver() {} |
417 }; | 420 }; |
418 | 421 |
419 // Factory class used for creating cricket::PortAllocator that is used | 422 // Factory class used for creating cricket::PortAllocator that is used |
420 // for ICE negotiation. | 423 // for ICE negotiation. |
421 class PortAllocatorFactoryInterface : public rtc::RefCountInterface { | 424 class PortAllocatorFactoryInterface : public rtc::RefCountInterface { |
422 public: | 425 public: |
423 struct StunConfiguration { | 426 struct StunConfiguration { |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 CreatePeerConnectionFactory( | 625 CreatePeerConnectionFactory( |
623 rtc::Thread* worker_thread, | 626 rtc::Thread* worker_thread, |
624 rtc::Thread* signaling_thread, | 627 rtc::Thread* signaling_thread, |
625 AudioDeviceModule* default_adm, | 628 AudioDeviceModule* default_adm, |
626 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 629 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
627 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 630 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
628 | 631 |
629 } // namespace webrtc | 632 } // namespace webrtc |
630 | 633 |
631 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ | 634 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |