// This interface provides access to the state of an SDP offer/answer // negotiation. // // All the functions are const, so using this interface serves as // assurance that the user is not modifying the state. class SdpStateProvider { public: virtual ~SdpStateProvider() {}
// Whether an ICE restart has been asked for. Used in CreateOffer. virtualbool NeedsIceRestart(const std::string& content_name) const = 0; // Whether an ICE restart was indicated in the remote offer. // Used in CreateAnswer. virtualbool IceRestartPending(const std::string& content_name) const = 0; virtual std::optional<SSLRole> GetDtlsRole(const std::string& mid) const = 0;
};