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

Unified Diff: webrtc/p2p/base/candidate.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/p2p/base/candidate.h
diff --git a/webrtc/p2p/base/candidate.h b/webrtc/p2p/base/candidate.h
index 11481cdb05a972db4237d3ef961cea6b0bc7e066..c8ecb8233acea43ed14a3f6bde81edf8e2ea4d28 100644
--- a/webrtc/p2p/base/candidate.h
+++ b/webrtc/p2p/base/candidate.h
@@ -149,6 +149,10 @@ class Candidate {
}
uint32_t network_cost() const { return network_cost_; }
+ // An ID assigned to the network hosting the candidate.
+ uint16_t network_id() const { return network_id_; }
+ void set_network_id(uint16_t network_id) { network_id_ = network_id; }
+
const std::string& foundation() const {
return foundation_;
}
@@ -253,11 +257,12 @@ class Candidate {
std::string type_;
std::string network_name_;
rtc::AdapterType network_type_;
+ uint32_t network_cost_ = 0;
+ uint16_t network_id_ = 0;
uint32_t generation_;
std::string foundation_;
rtc::SocketAddress related_address_;
std::string tcptype_;
- uint32_t network_cost_ = 0;
std::string transport_name_;
};

Powered by Google App Engine
This is Rietveld 408576698