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

Unified Diff: webrtc/p2p/base/port.h

Issue 1976683003: Update the type and cost of existing networks if its type is found later by network monitor (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Get network type from name matching only on IOS or Android. Created 4 years, 7 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/p2p/base/port.h
diff --git a/webrtc/p2p/base/port.h b/webrtc/p2p/base/port.h
index 7ec33bcd0b18169f22998026ee4bd19d37be8830..3e125c788fb78729ac165944575b3fc8e2a34af0 100644
--- a/webrtc/p2p/base/port.h
+++ b/webrtc/p2p/base/port.h
@@ -306,6 +306,8 @@ class Port : public PortInterface, public rtc::MessageHandler,
MSG_FIRST_AVAILABLE
};
+ virtual void UpdateNetworkCost();
+
void set_type(const std::string& type) { type_ = type; }
void AddAddress(const rtc::SocketAddress& address,
@@ -364,6 +366,8 @@ class Port : public PortInterface, public rtc::MessageHandler,
void OnNetworkInactive(const rtc::Network* network);
+ void OnNetworkTypeChanged(const rtc::Network* network);
+
rtc::Thread* thread_;
rtc::PacketSocketFactory* factory_;
std::string type_;

Powered by Google App Engine
This is Rietveld 408576698