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

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: Minor changes 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
« no previous file with comments | « webrtc/p2p/base/candidate.h ('k') | webrtc/p2p/base/port.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/port.h
diff --git a/webrtc/p2p/base/port.h b/webrtc/p2p/base/port.h
index 937f3cd0284f058e12fc6a47848ac0ad8ec98204..e72e9dcc31a11a85657c07d687b02971c194f62a 100644
--- a/webrtc/p2p/base/port.h
+++ b/webrtc/p2p/base/port.h
@@ -304,6 +304,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,
@@ -362,6 +364,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_;
« no previous file with comments | « webrtc/p2p/base/candidate.h ('k') | webrtc/p2p/base/port.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698