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

Unified Diff: content/renderer/p2p/port_allocator.cc

Issue 10382003: Changes needed to roll libjingle r141 (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 7 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 | « content/renderer/p2p/port_allocator.h ('k') | jingle/glue/channel_socket_adapter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/p2p/port_allocator.cc
===================================================================
--- content/renderer/p2p/port_allocator.cc (revision 137969)
+++ content/renderer/p2p/port_allocator.cc (working copy)
@@ -70,17 +70,22 @@
P2PPortAllocator::~P2PPortAllocator() {
}
-cricket::PortAllocatorSession* P2PPortAllocator::CreateSession(
- const std::string& channel_name,
- int component) {
- return new P2PPortAllocatorSession(this, channel_name, component);
+cricket::PortAllocatorSession* P2PPortAllocator::CreateSessionInternal(
+ int component,
+ const std::string& ice_username_fragment,
+ const std::string& ice_password) {
+ return new P2PPortAllocatorSession(
+ this, component, ice_username_fragment, ice_password);
}
P2PPortAllocatorSession::P2PPortAllocatorSession(
P2PPortAllocator* allocator,
- const std::string& channel_name,
- int component)
- : cricket::BasicPortAllocatorSession(allocator, channel_name, component),
+ int component,
+ const std::string& ice_username_fragment,
+ const std::string& ice_password)
+ : cricket::BasicPortAllocatorSession(
+ allocator, component,
+ ice_username_fragment, ice_password),
allocator_(allocator),
relay_session_attempts_(0),
relay_udp_port_(0),
@@ -221,7 +226,7 @@
WebString::fromUTF8("X-Google-Relay-Auth"),
WebString::fromUTF8(allocator_->config_.relay_password));
request.addHTTPHeaderField(WebString::fromUTF8("X-Stream-Type"),
- WebString::fromUTF8(channel_name()));
+ WebString::fromUTF8("chromoting"));
relay_session_request_->loadAsynchronously(request, this);
}
« no previous file with comments | « content/renderer/p2p/port_allocator.h ('k') | jingle/glue/channel_socket_adapter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698