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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 // Sets the local session description. | 328 // Sets the local session description. |
329 // JsepInterface takes the ownership of |desc| even if it fails. | 329 // JsepInterface takes the ownership of |desc| even if it fails. |
330 // The |observer| callback will be called when done. | 330 // The |observer| callback will be called when done. |
331 virtual void SetLocalDescription(SetSessionDescriptionObserver* observer, | 331 virtual void SetLocalDescription(SetSessionDescriptionObserver* observer, |
332 SessionDescriptionInterface* desc) = 0; | 332 SessionDescriptionInterface* desc) = 0; |
333 // Sets the remote session description. | 333 // Sets the remote session description. |
334 // JsepInterface takes the ownership of |desc| even if it fails. | 334 // JsepInterface takes the ownership of |desc| even if it fails. |
335 // The |observer| callback will be called when done. | 335 // The |observer| callback will be called when done. |
336 virtual void SetRemoteDescription(SetSessionDescriptionObserver* observer, | 336 virtual void SetRemoteDescription(SetSessionDescriptionObserver* observer, |
337 SessionDescriptionInterface* desc) = 0; | 337 SessionDescriptionInterface* desc) = 0; |
| 338 // Sets the ICE connection receiving timeout value in milliseconds. |
| 339 virtual void SetIceConnectionReceivingTimeout(int timeout_ms) = 0; |
338 // Restarts or updates the ICE Agent process of gathering local candidates | 340 // Restarts or updates the ICE Agent process of gathering local candidates |
339 // and pinging remote candidates. | 341 // and pinging remote candidates. |
340 virtual bool UpdateIce(const IceServers& configuration, | 342 virtual bool UpdateIce(const IceServers& configuration, |
341 const MediaConstraintsInterface* constraints) = 0; | 343 const MediaConstraintsInterface* constraints) = 0; |
342 // Provides a remote candidate to the ICE Agent. | 344 // Provides a remote candidate to the ICE Agent. |
343 // A copy of the |candidate| will be created and added to the remote | 345 // A copy of the |candidate| will be created and added to the remote |
344 // description. So the caller of this method still has the ownership of the | 346 // description. So the caller of this method still has the ownership of the |
345 // |candidate|. | 347 // |candidate|. |
346 // TODO(ronghuawu): Consider to change this so that the AddIceCandidate will | 348 // TODO(ronghuawu): Consider to change this so that the AddIceCandidate will |
347 // take the ownership of the |candidate|. | 349 // take the ownership of the |candidate|. |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 CreatePeerConnectionFactory( | 627 CreatePeerConnectionFactory( |
626 rtc::Thread* worker_thread, | 628 rtc::Thread* worker_thread, |
627 rtc::Thread* signaling_thread, | 629 rtc::Thread* signaling_thread, |
628 AudioDeviceModule* default_adm, | 630 AudioDeviceModule* default_adm, |
629 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 631 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
630 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 632 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
631 | 633 |
632 } // namespace webrtc | 634 } // namespace webrtc |
633 | 635 |
634 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ | 636 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |