Index: webrtc/api/peerconnection.h |
diff --git a/webrtc/api/peerconnection.h b/webrtc/api/peerconnection.h |
index 5269e3ae498ed3dfa2210da13ba40139ec8170af..181366a9905c6c068b8ef51524aeff8144dd7f3e 100644 |
--- a/webrtc/api/peerconnection.h |
+++ b/webrtc/api/peerconnection.h |
@@ -31,28 +31,6 @@ class MediaStreamObserver; |
class VideoRtpReceiver; |
class RtcEventLog; |
-// Populates |session_options| from |rtc_options|, and returns true if options |
-// are valid. |
-// |session_options|->transport_options map entries must exist in order for |
-// them to be populated from |rtc_options|. |
-bool ExtractMediaSessionOptions( |
- const PeerConnectionInterface::RTCOfferAnswerOptions& rtc_options, |
- bool is_offer, |
- cricket::MediaSessionOptions* session_options); |
- |
-// Populates |session_options| from |constraints|, and returns true if all |
-// mandatory constraints are satisfied. |
-// Assumes that |session_options|->transport_options map entries exist. |
-// Will also set defaults if corresponding constraints are not present: |
-// recv_audio=true, recv_video=true, bundle_enabled=true. |
-// Other fields will be left with existing values. |
-// |
-// Deprecated. Will be removed once callers that use constraints are gone. |
-// TODO(hta): Remove when callers are gone. |
-// https://bugs.chromium.org/p/webrtc/issues/detail?id=5617 |
-bool ParseConstraintsForAnswer(const MediaConstraintsInterface* constraints, |
- cricket::MediaSessionOptions* session_options); |
- |
// Parses the URLs for each server in |servers| to build |stun_servers| and |
// |turn_servers|. |
bool ParseIceServers(const PeerConnectionInterface::IceServers& servers, |
@@ -235,27 +213,14 @@ class PeerConnection : public PeerConnectionInterface, |
// Returns a MediaSessionOptions struct with options decided by |options|, |
// the local MediaStreams and DataChannels. |
- virtual bool GetOptionsForOffer( |
+ void GetOptionsForOffer( |
const PeerConnectionInterface::RTCOfferAnswerOptions& rtc_options, |
cricket::MediaSessionOptions* session_options); |
// 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); |
- |
- void InitializeOptionsForAnswer( |
- cricket::MediaSessionOptions* session_options); |
- |
- // Helper function for options processing. |
- // Deprecated. |
- virtual void FinishOptionsForAnswer( |
- cricket::MediaSessionOptions* session_options); |
+ void GetOptionsForAnswer(const RTCOfferAnswerOptions& rtc_options, |
+ 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). |
@@ -352,6 +317,7 @@ class PeerConnection : public PeerConnectionInterface, |
void OnDataChannelOpenMessage(const std::string& label, |
const InternalDataChannelInit& config); |
+ bool HasRtpSender(cricket::MediaType type) const; |
RtpSenderInternal* FindSenderById(const std::string& id); |
std::vector<rtc::scoped_refptr< |