Add firing of OnRemoveTrack and OnRenegotationNeeded during rollback
Bug: chromium:980875
Change-Id: I71439cea4c79e4a8dae6488404b0c303a9c33a97
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/157581
Commit-Queue: Eldar Rello <elrello@microsoft.com>
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29563}
diff --git a/pc/peer_connection.h b/pc/peer_connection.h
index 428c2e8..baaa14d 100644
--- a/pc/peer_connection.h
+++ b/pc/peer_connection.h
@@ -1193,7 +1193,9 @@
void UpdateNegotiationNeeded();
bool CheckIfNegotiationIsNeeded();
- RTCError Rollback();
+
+ // | sdp_type | is the type of the SDP that caused the rollback.
+ RTCError Rollback(SdpType sdp_type);
sigslot::signal1<DataChannel*> SignalDataChannelCreated_
RTC_GUARDED_BY(signaling_thread());