Index: webrtc/api/peerconnection.h |
diff --git a/webrtc/api/peerconnection.h b/webrtc/api/peerconnection.h |
index a63dd4342358fc96b21a38fe3f67237ed7d98545..70bf421ad97ec64e422e774c03418b8af43d004a 100644 |
--- a/webrtc/api/peerconnection.h |
+++ b/webrtc/api/peerconnection.h |
@@ -39,6 +39,7 @@ bool ConvertRtcOptionsForOffer( |
// Populates |session_options| from |constraints|, and returns true if all |
// mandatory constraints are satisfied. |
// Assumes that |session_options|->transport_options map entries exist. |
+// Deprecated. |
perkj_webrtc
2016/03/01 08:41:26
Can you please add a todo and explain when this wi
hta-webrtc
2016/03/02 09:33:40
Done. Bug 5617 filed.
|
bool ParseConstraintsForAnswer(const MediaConstraintsInterface* constraints, |
cricket::MediaSessionOptions* session_options); |
@@ -58,8 +59,8 @@ class PeerConnection : public PeerConnectionInterface, |
explicit PeerConnection(PeerConnectionFactory* factory); |
bool Initialize( |
+ const cricket::MediaConfig& media_config, |
const PeerConnectionInterface::RTCConfiguration& configuration, |
- const MediaConstraintsInterface* constraints, |
rtc::scoped_ptr<cricket::PortAllocator> allocator, |
rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store, |
PeerConnectionObserver* observer); |
@@ -106,12 +107,16 @@ class PeerConnection : public PeerConnectionInterface, |
const SessionDescriptionInterface* remote_description() const override; |
// JSEP01 |
+ // Deprecated, use version without constraints. |
void CreateOffer(CreateSessionDescriptionObserver* observer, |
const MediaConstraintsInterface* constraints) override; |
void CreateOffer(CreateSessionDescriptionObserver* observer, |
const RTCOfferAnswerOptions& options) override; |
+ // Deprecated, use version without constraints. |
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, |
@@ -211,9 +216,18 @@ class PeerConnection : public PeerConnectionInterface, |
// Returns a MediaSessionOptions struct with options decided by |
// |constraints|, the local MediaStreams and DataChannels. |
+ // Deprecated, use version without constraints. |
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. |
+ // Deprecated. |
+ 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 +394,11 @@ class PeerConnection : public PeerConnectionInterface, |
rtc::scoped_ptr<StatsCollector> stats_; |
}; |
+// Deprecated. |
+void CopyConstraintsIntoRtcConfiguration( |
+ const MediaConstraintsInterface* constraints, |
+ PeerConnectionInterface::RTCConfiguration* configuration); |
+ |
} // namespace webrtc |
#endif // WEBRTC_API_PEERCONNECTION_H_ |