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

Unified Diff: remoting/protocol/jingle_session_manager.cc

Issue 7598004: Resolve addresses of STUN/Relay servers in JingleInfoRequest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 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 | « remoting/protocol/jingle_session_manager.h ('k') | remoting/remoting.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/jingle_session_manager.cc
diff --git a/remoting/protocol/jingle_session_manager.cc b/remoting/protocol/jingle_session_manager.cc
index 96292859c450b4589368af05f78ad8c5e66699fc..60defc132a2a6b71c8bd1b0a39f492de76c01177 100644
--- a/remoting/protocol/jingle_session_manager.cc
+++ b/remoting/protocol/jingle_session_manager.cc
@@ -11,6 +11,7 @@
#include "base/string_util.h"
#include "base/task.h"
#include "remoting/base/constants.h"
+#include "remoting/jingle_glue/host_resolver.h"
#include "remoting/jingle_glue/http_port_allocator.h"
#include "remoting/jingle_glue/jingle_info_request.h"
#include "remoting/jingle_glue/jingle_signaling_connector.h"
@@ -29,24 +30,28 @@ namespace protocol {
// static
JingleSessionManager* JingleSessionManager::CreateNotSandboxed() {
- return new JingleSessionManager(NULL, NULL, NULL);
+ return new JingleSessionManager(NULL, NULL, NULL, NULL);
}
// static
JingleSessionManager* JingleSessionManager::CreateSandboxed(
talk_base::NetworkManager* network_manager,
talk_base::PacketSocketFactory* socket_factory,
+ HostResolverFactory* host_resolver_factory,
PortAllocatorSessionFactory* port_allocator_session_factory) {
return new JingleSessionManager(network_manager, socket_factory,
+ host_resolver_factory,
port_allocator_session_factory);
}
JingleSessionManager::JingleSessionManager(
talk_base::NetworkManager* network_manager,
talk_base::PacketSocketFactory* socket_factory,
+ HostResolverFactory* host_resolver_factory,
PortAllocatorSessionFactory* port_allocator_session_factory)
: network_manager_(network_manager),
socket_factory_(socket_factory),
+ host_resolver_factory_(host_resolver_factory),
port_allocator_session_factory_(port_allocator_session_factory),
signal_strategy_(NULL),
allow_nat_traversal_(false),
@@ -121,7 +126,8 @@ void JingleSessionManager::Init(
// If NAT traversal is enabled then we need to request STUN/Relay info.
if (allow_nat_traversal) {
jingle_info_request_.reset(
- new JingleInfoRequest(signal_strategy_->CreateIqRequest()));
+ new JingleInfoRequest(signal_strategy_->CreateIqRequest(),
+ host_resolver_factory_.get()));
jingle_info_request_->Send(base::Bind(
&JingleSessionManager::OnJingleInfo, base::Unretained(this)));
} else {
« no previous file with comments | « remoting/protocol/jingle_session_manager.h ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698