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

Unified Diff: remoting/client/plugin/pepper_port_allocator.cc

Issue 456013002: Use all stun addresses in PepperPortAllocator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_port_allocator.cc
diff --git a/remoting/client/plugin/pepper_port_allocator.cc b/remoting/client/plugin/pepper_port_allocator.cc
index bcbb1b2a755e89ec80cef99a607a4aacaf94d904..db47a62cbffc4559c1d10a00e6d204a038ba5572 100644
--- a/remoting/client/plugin/pepper_port_allocator.cc
+++ b/remoting/client/plugin/pepper_port_allocator.cc
@@ -51,8 +51,7 @@ class PepperPortAllocatorSession
pp::InstanceHandle instance_;
- rtc::SocketAddress stun_address_;
- int stun_port_;
+ cricket::ServerAddresses stun_hosts_;
scoped_ptr<pp::URLLoader> relay_url_loader_;
std::vector<char> relay_response_body_;
@@ -83,12 +82,9 @@ PepperPortAllocatorSession::PepperPortAllocatorSession(
relay_token,
std::string()),
instance_(instance),
- stun_port_(0),
+ stun_hosts_(stun_hosts.begin(), stun_hosts.end()),
relay_response_received_(false),
callback_factory_(this) {
- if (stun_hosts.size() > 0) {
- stun_address_ = stun_hosts[0];
- }
}
PepperPortAllocatorSession::~PepperPortAllocatorSession() {
@@ -115,7 +111,7 @@ void PepperPortAllocatorSession::GetPortConfigurations() {
// Add a configuration without relay response first so local and STUN
// candidates can be allocated without waiting for the relay response.
ConfigReady(new cricket::PortConfiguration(
- stun_address_, std::string(), std::string()));
+ stun_hosts_, std::string(), std::string()));
TryCreateRelaySession();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698