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

Unified Diff: remoting/host/host_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 | « remoting/host/host_port_allocator.h ('k') | remoting/jingle_glue/xmpp_signal_strategy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_port_allocator.cc
===================================================================
--- remoting/host/host_port_allocator.cc (revision 137969)
+++ remoting/host/host_port_allocator.cc (working copy)
@@ -22,8 +22,9 @@
public:
HostPortAllocatorSession(
cricket::HttpPortAllocatorBase* allocator,
- const std::string& channel_name,
int component,
+ const std::string& ice_username_fragment,
+ const std::string& ice_password,
const std::vector<talk_base::SocketAddress>& stun_hosts,
const std::vector<std::string>& relay_hosts,
const std::string& relay,
@@ -48,14 +49,16 @@
HostPortAllocatorSession::HostPortAllocatorSession(
cricket::HttpPortAllocatorBase* allocator,
- const std::string& channel_name,
int component,
+ const std::string& ice_username_fragment,
+ const std::string& ice_password,
const std::vector<talk_base::SocketAddress>& stun_hosts,
const std::vector<std::string>& relay_hosts,
const std::string& relay,
const scoped_refptr<net::URLRequestContextGetter>& url_context)
: HttpPortAllocatorSessionBase(
- allocator, channel_name, component, stun_hosts, relay_hosts, relay, ""),
+ allocator, component, ice_username_fragment, ice_password,
+ stun_hosts, relay_hosts, relay, ""),
url_context_(url_context) {
}
@@ -87,7 +90,7 @@
url_fetcher->SetRequestContext(url_context_);
url_fetcher->SetHeader("X-Talk-Google-Relay-Auth", relay_token());
url_fetcher->SetHeader("X-Google-Relay-Auth", relay_token());
- url_fetcher->SetHeader("X-Stream-Type", channel_name());
+ url_fetcher->SetHeader("X-Stream-Type", "chromoting");
url_fetcher->Start(base::Bind(&HostPortAllocatorSession::OnSessionRequestDone,
base::Unretained(this), url_fetcher.get()));
url_fetchers_.insert(url_fetcher.release());
@@ -154,12 +157,13 @@
HostPortAllocator::~HostPortAllocator() {
}
-cricket::PortAllocatorSession* HostPortAllocator::CreateSession(
- const std::string& channel_name,
- int component) {
+cricket::PortAllocatorSession* HostPortAllocator::CreateSessionInternal(
+ int component,
+ const std::string& ice_username_fragment,
+ const std::string& ice_password) {
return new HostPortAllocatorSession(
- this, channel_name, component, stun_hosts(),
- relay_hosts(), relay_token(), url_context_);
+ this, component, ice_username_fragment, ice_password,
+ stun_hosts(), relay_hosts(), relay_token(), url_context_);
}
} // namespace remoting
« no previous file with comments | « remoting/host/host_port_allocator.h ('k') | remoting/jingle_glue/xmpp_signal_strategy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698