Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1737)

Unified Diff: webrtc/media/base/mediachannel.h

Issue 1803063004: Reset the BWE when the network changes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/media/base/mediachannel.h
diff --git a/webrtc/media/base/mediachannel.h b/webrtc/media/base/mediachannel.h
index 68efbe798440edd0ce9214a8425b3c3e853545ea..fbc3538d9004c72bc122b76dece213018c01cff0 100644
--- a/webrtc/media/base/mediachannel.h
+++ b/webrtc/media/base/mediachannel.h
@@ -375,6 +375,8 @@ class MediaChannel : public sigslot::has_slots<> {
const rtc::PacketTime& packet_time) = 0;
// Called when the socket's ability to send has changed.
virtual void OnReadyToSend(bool ready) = 0;
+ // Called when the network used for sending packets changed.
+ virtual void OnNetworkChanged(int local_net_id, int remote_net_id) = 0;
// Creates a new outgoing media stream with SSRCs and CNAME as described
// by sp.
virtual bool AddSendStream(const StreamParams& sp) = 0;
@@ -1098,6 +1100,8 @@ class DataMediaChannel : public MediaChannel {
virtual bool SetSend(bool send) = 0;
virtual bool SetReceive(bool receive) = 0;
+ virtual void OnNetworkChanged(int local_net_id, int remote_net_id) {}
+
virtual bool SendData(
const SendDataParams& params,
const rtc::Buffer& payload,

Powered by Google App Engine
This is Rietveld 408576698