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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 // The |observer| callback will be called when done. | 358 // The |observer| callback will be called when done. |
359 virtual void SetLocalDescription(SetSessionDescriptionObserver* observer, | 359 virtual void SetLocalDescription(SetSessionDescriptionObserver* observer, |
360 SessionDescriptionInterface* desc) = 0; | 360 SessionDescriptionInterface* desc) = 0; |
361 // Sets the remote session description. | 361 // Sets the remote session description. |
362 // JsepInterface takes the ownership of |desc| even if it fails. | 362 // JsepInterface takes the ownership of |desc| even if it fails. |
363 // The |observer| callback will be called when done. | 363 // The |observer| callback will be called when done. |
364 virtual void SetRemoteDescription(SetSessionDescriptionObserver* observer, | 364 virtual void SetRemoteDescription(SetSessionDescriptionObserver* observer, |
365 SessionDescriptionInterface* desc) = 0; | 365 SessionDescriptionInterface* desc) = 0; |
366 // Restarts or updates the ICE Agent process of gathering local candidates | 366 // Restarts or updates the ICE Agent process of gathering local candidates |
367 // and pinging remote candidates. | 367 // and pinging remote candidates. |
368 // TODO(deadbeef): Remove once Chrome is moved over to SetConfiguration. | |
369 virtual bool UpdateIce(const IceServers& configuration, | 368 virtual bool UpdateIce(const IceServers& configuration, |
370 const MediaConstraintsInterface* constraints) = 0; | 369 const MediaConstraintsInterface* constraints) = 0; |
371 // Sets the PeerConnection's global configuration to |config|. | |
372 // Any changes to STUN/TURN servers or ICE candidate policy will affect the | |
373 // next gathering phase, and cause the next call to createOffer to generate | |
374 // new ICE credentials. Note that the BUNDLE and RTCP-multiplexing policies | |
375 // cannot be changed with this method. | |
376 virtual bool SetConfiguration( | |
377 const PeerConnectionInterface::RTCConfiguration& config) = 0; | |
378 // Provides a remote candidate to the ICE Agent. | 370 // Provides a remote candidate to the ICE Agent. |
379 // A copy of the |candidate| will be created and added to the remote | 371 // A copy of the |candidate| will be created and added to the remote |
380 // description. So the caller of this method still has the ownership of the | 372 // description. So the caller of this method still has the ownership of the |
381 // |candidate|. | 373 // |candidate|. |
382 // TODO(ronghuawu): Consider to change this so that the AddIceCandidate will | 374 // TODO(ronghuawu): Consider to change this so that the AddIceCandidate will |
383 // take the ownership of the |candidate|. | 375 // take the ownership of the |candidate|. |
384 virtual bool AddIceCandidate(const IceCandidateInterface* candidate) = 0; | 376 virtual bool AddIceCandidate(const IceCandidateInterface* candidate) = 0; |
385 | 377 |
386 virtual void RegisterUMAObserver(UMAObserver* observer) = 0; | 378 virtual void RegisterUMAObserver(UMAObserver* observer) = 0; |
387 | 379 |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 CreatePeerConnectionFactory( | 604 CreatePeerConnectionFactory( |
613 rtc::Thread* worker_thread, | 605 rtc::Thread* worker_thread, |
614 rtc::Thread* signaling_thread, | 606 rtc::Thread* signaling_thread, |
615 AudioDeviceModule* default_adm, | 607 AudioDeviceModule* default_adm, |
616 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 608 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
617 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 609 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
618 | 610 |
619 } // namespace webrtc | 611 } // namespace webrtc |
620 | 612 |
621 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ | 613 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |