Unify SetLocalDescription() and SetRemoteDescription().
Prior to this CL, there was a separate observer class for SetLocalDescription() and SetRemoteDescription(). In this CL, the WebRtcSetRemoteDescriptionObserver is renamed to WebRtcSetDescriptionObserver (to reflect it is used both for local and remote descriptions) and the WebRtcSetDescriptionObserverHandler is split up in a "Local" and "Remote" handler version. WebRtcSetDescriptionObserverHandler is updated to use the TransceiverStateSurfacer. In Plan B this is a refactoring that shouldn't make any functional changes, but in Unified Plan this setup will allow the creation of transceivers as well. The RTCPeerConnectionHandler is updated to wire both local and remote descriptions to use the same observer. The WebRtcSetDescriptionObserverImpl takes care of adding and removing receivers. Prior to this CL this is something we did for remote descriptions but not local ones. Because SetLocalDescription() does not change the set of receivers in Plan B, this should not make a difference. But in Unified Plan, the same codepath needs to run in both local and remote cases because in Unified Plan both SetLocalDescription() and SetRemoteDescription() modifies the state of transcievers. In an upcoming CL the "...ObserverImpl" will not just add and remove receivers but also take care of updating transceivers if Unified Plan is used. This CL also: - Removes RTCPeerConnectionHandler::SetLocalDescriptionRequest because it is not used anymore. - Removes SessionDescriptionRequestTracker, because it doesn't do much and the only remaining use was in CreateSessionDescriptionRequest which is updated to do the equivalent of its use of the tracker. Bug: 777617 Change-Id: I8a5726f25764c1e57ec18e7eb96decf083fc8333 Reviewed-on: https://chromium-review.googlesource.com/1136441Reviewed-by:Guido Urdaneta <guidou@chromium.org> Reviewed-by:
Pavel Feldman <pfeldman@chromium.org> Commit-Queue: Henrik Boström <hbos@chromium.org> Cr-Commit-Position: refs/heads/master@{#575663}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment