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

Unified Diff: webrtc/p2p/base/port.cc

Issue 2685053004: Add the URL attribute to cricket::Candiate. (Closed)
Patch Set: Add the Server URL to the Candiate. 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
Index: webrtc/p2p/base/port.cc
diff --git a/webrtc/p2p/base/port.cc b/webrtc/p2p/base/port.cc
index 385022c11aa98fd7be768c672617c5a900d5b5de..d356b52c16820cb528c001b58463fa23a25581af 100644
--- a/webrtc/p2p/base/port.cc
+++ b/webrtc/p2p/base/port.cc
@@ -252,6 +252,7 @@ void Port::AddAddress(const rtc::SocketAddress& address,
const std::string& type,
uint32_t type_preference,
uint32_t relay_preference,
+ std::string url,
Taylor Brandstetter 2017/02/10 01:58:46 nit: const ref parameter
Zhi Huang 2017/02/10 06:45:50 Done.
bool final) {
if (protocol == TCP_PROTOCOL_NAME && type == LOCAL_PORT_TYPE) {
RTC_DCHECK(!tcptype.empty());
@@ -268,6 +269,7 @@ void Port::AddAddress(const rtc::SocketAddress& address,
c.set_network_name(network_->name());
c.set_network_type(network_->type());
c.set_related_address(related_address);
+ c.set_url(url);
candidates_.push_back(c);
SignalCandidateReady(this, c);

Powered by Google App Engine
This is Rietveld 408576698