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

Side by Side Diff: remoting/host/it2me/it2me_host.cc

Issue 98173006: Fix LibjingleTransportFactory to refresh STUN/Relay. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/it2me/it2me_host.h" 5 #include "remoting/host/it2me/it2me_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "base/threading/platform_thread.h" 10 #include "base/threading/platform_thread.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 NetworkSettings::NAT_TRAVERSAL_DISABLED); 188 NetworkSettings::NAT_TRAVERSAL_DISABLED);
189 if (!nat_traversal_enabled_) { 189 if (!nat_traversal_enabled_) {
190 network_settings.min_port = NetworkSettings::kDefaultMinPort; 190 network_settings.min_port = NetworkSettings::kDefaultMinPort;
191 network_settings.max_port = NetworkSettings::kDefaultMaxPort; 191 network_settings.max_port = NetworkSettings::kDefaultMaxPort;
192 } 192 }
193 193
194 // Create the host. 194 // Create the host.
195 host_.reset(new ChromotingHost( 195 host_.reset(new ChromotingHost(
196 signal_strategy_.get(), 196 signal_strategy_.get(),
197 desktop_environment_factory_.get(), 197 desktop_environment_factory_.get(),
198 CreateHostSessionManager(network_settings, 198 CreateHostSessionManager(signal_strategy_.get(), network_settings,
199 host_context_->url_request_context_getter()), 199 host_context_->url_request_context_getter()),
200 host_context_->audio_task_runner(), 200 host_context_->audio_task_runner(),
201 host_context_->input_task_runner(), 201 host_context_->input_task_runner(),
202 host_context_->video_capture_task_runner(), 202 host_context_->video_capture_task_runner(),
203 host_context_->video_encode_task_runner(), 203 host_context_->video_encode_task_runner(),
204 host_context_->network_task_runner(), 204 host_context_->network_task_runner(),
205 host_context_->ui_task_runner())); 205 host_context_->ui_task_runner()));
206 host_->AddStatusObserver(this); 206 host_->AddStatusObserver(this);
207 log_to_server_.reset( 207 log_to_server_.reset(
208 new LogToServer(host_->AsWeakPtr(), ServerLogEntry::IT2ME, 208 new LogToServer(host_->AsWeakPtr(), ServerLogEntry::IT2ME,
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 ChromotingHostContext* context, 469 ChromotingHostContext* context,
470 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 470 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
471 base::WeakPtr<It2MeHost::Observer> observer, 471 base::WeakPtr<It2MeHost::Observer> observer,
472 const XmppSignalStrategy::XmppServerConfig& xmpp_server_config, 472 const XmppSignalStrategy::XmppServerConfig& xmpp_server_config,
473 const std::string& directory_bot_jid) { 473 const std::string& directory_bot_jid) {
474 return new It2MeHost( 474 return new It2MeHost(
475 context, task_runner, observer, xmpp_server_config, directory_bot_jid); 475 context, task_runner, observer, xmpp_server_config, directory_bot_jid);
476 } 476 }
477 477
478 } // namespace remoting 478 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698