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

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

Issue 10209008: Roll libjingle 132:133 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/p2p/port_allocator.cc
diff --git a/content/renderer/p2p/port_allocator.cc b/content/renderer/p2p/port_allocator.cc
index b22a88bb2e9fa401b1444d91e46267fc5e6bb79e..610f61b92d1441df8498ce5c215be7dd45b51988 100644
--- a/content/renderer/p2p/port_allocator.cc
+++ b/content/renderer/p2p/port_allocator.cc
@@ -71,16 +71,16 @@ P2PPortAllocator::~P2PPortAllocator() {
}
cricket::PortAllocatorSession* P2PPortAllocator::CreateSession(
- const std::string& name,
- const std::string& session_type) {
- return new P2PPortAllocatorSession(this, name, session_type);
+ const std::string& channel_name,
+ int component) {
+ return new P2PPortAllocatorSession(this, channel_name, component);
}
P2PPortAllocatorSession::P2PPortAllocatorSession(
P2PPortAllocator* allocator,
- const std::string& name,
- const std::string& session_type)
- : cricket::BasicPortAllocatorSession(allocator, name, session_type),
+ const std::string& channel_name,
+ int component)
+ : cricket::BasicPortAllocatorSession(allocator, channel_name, component),
allocator_(allocator),
relay_session_attempts_(0),
relay_udp_port_(0),
@@ -125,8 +125,7 @@ void P2PPortAllocatorSession::didFail(WebKit::WebURLLoader* loader,
void P2PPortAllocatorSession::GetPortConfigurations() {
// Add an empty configuration synchronously, so a local connection
// can be started immediately.
- ConfigReady(new cricket::PortConfiguration(
- talk_base::SocketAddress(), username(), password(), ""));
+ ConfigReady(new cricket::PortConfiguration(talk_base::SocketAddress()));
ResolveStunServerAddress();
AllocateRelaySession();
@@ -221,10 +220,8 @@ void P2PPortAllocatorSession::AllocateRelaySession() {
request.addHTTPHeaderField(
WebString::fromUTF8("X-Google-Relay-Auth"),
WebString::fromUTF8(allocator_->config_.relay_password));
- request.addHTTPHeaderField(WebString::fromUTF8("X-Session-Type"),
- WebString::fromUTF8(session_type()));
request.addHTTPHeaderField(WebString::fromUTF8("X-Stream-Type"),
- WebString::fromUTF8(name()));
+ WebString::fromUTF8(channel_name()));
relay_session_request_->loadAsynchronously(request, this);
}
@@ -285,8 +282,7 @@ void P2PPortAllocatorSession::ParseRelayResponse() {
void P2PPortAllocatorSession::AddConfig() {
cricket::PortConfiguration* config =
- new cricket::PortConfiguration(stun_server_address_,
- username(), password(), "");
+ new cricket::PortConfiguration(stun_server_address_);
if (relay_ip_.ip() != 0) {
cricket::PortConfiguration::PortList ports;
« no previous file with comments | « content/renderer/p2p/port_allocator.h ('k') | jingle/glue/channel_socket_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698