Chromium Code Reviews| Index: webrtc/p2p/base/candidate.h |
| diff --git a/webrtc/p2p/base/candidate.h b/webrtc/p2p/base/candidate.h |
| index 5073aeb32212aec33a661da29ace6a562c47f1a7..1264db601508a54da9273394891dad7dea4ece10 100644 |
| --- a/webrtc/p2p/base/candidate.h |
| +++ b/webrtc/p2p/base/candidate.h |
| @@ -161,7 +161,6 @@ class Candidate { |
| const std::string& foundation() const { |
| return foundation_; |
| } |
| - |
| void set_foundation(const std::string& foundation) { |
| foundation_ = foundation; |
| } |
| @@ -184,6 +183,10 @@ class Candidate { |
| transport_name_ = transport_name; |
| } |
| + // The URL of ICE server which this candidate is gathered from. |
|
Taylor Brandstetter
2017/02/10 01:58:45
nit: Add "the" before "ICE server"
Zhi Huang
2017/02/10 06:45:50
Done.
|
| + const std::string& url() const { return url_; } |
| + void set_url(const std::string& url) { url_ = url; } |
| + |
| // Determines whether this candidate is equivalent to the given one. |
| bool IsEquivalent(const Candidate& c) const { |
| // We ignore the network name, since that is just debug information, and |
| @@ -284,6 +287,7 @@ class Candidate { |
| std::string transport_name_; |
| uint16_t network_id_; |
| uint16_t network_cost_; |
| + std::string url_; |
| }; |
| // Used during parsing and writing to map component to channel name |