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

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

Issue 2685053004: Add the URL attribute to cricket::Candiate. (Closed)
Patch Set: Merge Created 3 years, 10 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 | « no previous file | webrtc/p2p/base/port.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/candidate.h
diff --git a/webrtc/p2p/base/candidate.h b/webrtc/p2p/base/candidate.h
index 5073aeb32212aec33a661da29ace6a562c47f1a7..723dbc9f47162b3d45a2e1973a5b66143fb1ada6 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 the ICE server which this candidate is gathered from.
+ 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
« no previous file with comments | « no previous file | webrtc/p2p/base/port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698