mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1133866: Some refactoring and simplification in JsepSessionImpl. r=mt
This commit is contained in:
parent
85acf47ba5
commit
e6d79f9627
File diff suppressed because it is too large
Load Diff
@ -189,6 +189,7 @@ private:
|
||||
SdpMediaSection* msection);
|
||||
void AddCommonExtmaps(const SdpMediaSection& remoteMsection,
|
||||
SdpMediaSection* msection);
|
||||
nsresult SetupIds();
|
||||
void SetupDefaultCodecs();
|
||||
void SetupDefaultRtpExtensions();
|
||||
void SetState(JsepSignalingState state);
|
||||
@ -200,6 +201,7 @@ private:
|
||||
nsresult SetRemoteDescriptionAnswer(JsepSdpType type, UniquePtr<Sdp> answer);
|
||||
nsresult ValidateLocalDescription(const Sdp& description);
|
||||
nsresult ValidateRemoteDescription(const Sdp& description);
|
||||
nsresult ValidateAnswer(const Sdp& offer, const Sdp& answer);
|
||||
nsresult SetRemoteTracksFromDescription(const Sdp& remoteDescription);
|
||||
// Non-const because we use our Uuid generator
|
||||
nsresult CreateReceivingTrack(size_t mline,
|
||||
@ -210,12 +212,28 @@ private:
|
||||
const UniquePtr<Sdp>& remote);
|
||||
nsresult AddTransportAttributes(SdpMediaSection* msection,
|
||||
SdpSetupAttribute::Role dtlsRole);
|
||||
nsresult CopyTransportParams(const SdpMediaSection& source,
|
||||
SdpMediaSection* dest);
|
||||
nsresult CopyStickyParams(const SdpMediaSection& source,
|
||||
SdpMediaSection* dest);
|
||||
nsresult AddOfferMSections(const JsepOfferOptions& options, Sdp* sdp);
|
||||
// Non-const so it can assign m-line index to tracks
|
||||
nsresult AddOfferMSectionsByType(SdpMediaSection::MediaType type,
|
||||
Maybe<size_t> offerToReceive,
|
||||
Sdp* sdp);
|
||||
nsresult BindLocalTracks(SdpMediaSection::MediaType mediatype,
|
||||
Sdp* sdp);
|
||||
nsresult BindTrackToMsection(JsepSendingTrack* track,
|
||||
SdpMediaSection* msection);
|
||||
nsresult EnsureRecvForRemoteTracks(SdpMediaSection::MediaType mediatype,
|
||||
Sdp* sdp,
|
||||
size_t* offerToReceive);
|
||||
nsresult SetRecvAsNeededOrDisable(SdpMediaSection::MediaType mediatype,
|
||||
Sdp* sdp,
|
||||
size_t* offerToRecv);
|
||||
nsresult AddRecvonlyMsections(SdpMediaSection::MediaType mediatype,
|
||||
size_t count,
|
||||
Sdp* sdp);
|
||||
nsresult CreateReoffer(const Sdp& oldLocalSdp,
|
||||
const Sdp& oldAnswer,
|
||||
Sdp* newSdp);
|
||||
@ -231,6 +249,9 @@ private:
|
||||
std::string* trackId);
|
||||
nsresult GetMsids(const SdpMediaSection& msection,
|
||||
std::vector<SdpMsidAttributeList::Msid>* msids);
|
||||
nsresult ParseMsid(const std::string& msidAttribute,
|
||||
std::string* streamId,
|
||||
std::string* trackId);
|
||||
nsresult CreateOfferMSection(SdpMediaSection::MediaType type,
|
||||
SdpDirectionAttribute::Direction direction,
|
||||
Sdp* sdp);
|
||||
@ -242,8 +263,15 @@ private:
|
||||
const SdpMediaSection& remoteMsection,
|
||||
SdpMediaSection* msection,
|
||||
Sdp* sdp);
|
||||
nsresult BindMatchingLocalTrackForAnswer(SdpMediaSection* msection);
|
||||
nsresult DetermineAnswererSetupRole(const SdpMediaSection& remoteMsection,
|
||||
SdpSetupAttribute::Role* rolep);
|
||||
nsresult MakeNegotiatedTrackPair(const SdpMediaSection& remote,
|
||||
const SdpMediaSection& local,
|
||||
const RefPtr<JsepTransport>& transport,
|
||||
bool usingBundle,
|
||||
size_t transportLevel,
|
||||
JsepTrackPair* trackPairOut);
|
||||
nsresult NegotiateTrack(const SdpMediaSection& remoteMsection,
|
||||
const SdpMediaSection& localMsection,
|
||||
JsepTrack::Direction,
|
||||
|
Loading…
Reference in New Issue
Block a user