| Index: webrtc/api/peerconnection.h
|
| diff --git a/webrtc/api/peerconnection.h b/webrtc/api/peerconnection.h
|
| index a63dd4342358fc96b21a38fe3f67237ed7d98545..07aa8443cfdeb5cd79e81351966e404efae6de4d 100644
|
| --- a/webrtc/api/peerconnection.h
|
| +++ b/webrtc/api/peerconnection.h
|
| @@ -59,7 +59,6 @@ class PeerConnection : public PeerConnectionInterface,
|
|
|
| bool Initialize(
|
| const PeerConnectionInterface::RTCConfiguration& configuration,
|
| - const MediaConstraintsInterface* constraints,
|
| rtc::scoped_ptr<cricket::PortAllocator> allocator,
|
| rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store,
|
| PeerConnectionObserver* observer);
|
| @@ -112,6 +111,8 @@ class PeerConnection : public PeerConnectionInterface,
|
| const RTCOfferAnswerOptions& options) override;
|
| void CreateAnswer(CreateSessionDescriptionObserver* observer,
|
| const MediaConstraintsInterface* constraints) override;
|
| + void CreateAnswer(CreateSessionDescriptionObserver* observer,
|
| + const RTCOfferAnswerOptions& options) override;
|
| void SetLocalDescription(SetSessionDescriptionObserver* observer,
|
| SessionDescriptionInterface* desc) override;
|
| void SetRemoteDescription(SetSessionDescriptionObserver* observer,
|
| @@ -214,6 +215,13 @@ class PeerConnection : public PeerConnectionInterface,
|
| virtual bool GetOptionsForAnswer(
|
| const MediaConstraintsInterface* constraints,
|
| cricket::MediaSessionOptions* session_options);
|
| + virtual bool GetOptionsForAnswer(
|
| + const RTCOfferAnswerOptions& options,
|
| + cricket::MediaSessionOptions* session_options);
|
| +
|
| + // Helper function for options processing.
|
| + virtual void FinishOptionsForAnswer(
|
| + cricket::MediaSessionOptions* session_options);
|
|
|
| // Remove all local and remote tracks of type |media_type|.
|
| // Called when a media type is rejected (m-line set to port 0).
|
| @@ -380,6 +388,10 @@ class PeerConnection : public PeerConnectionInterface,
|
| rtc::scoped_ptr<StatsCollector> stats_;
|
| };
|
|
|
| +void CopyConstraintsIntoRtcConfiguration(
|
| + const MediaConstraintsInterface* constraints,
|
| + PeerConnectionInterface::RTCConfiguration* configuration);
|
| +
|
| } // namespace webrtc
|
|
|
| #endif // WEBRTC_API_PEERCONNECTION_H_
|
|
|