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_; |
}; |