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

Unified Diff: remoting/protocol/connection_to_host_impl.cc

Issue 1521883006: Add TransportContext class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/connection_to_host_impl.h ('k') | remoting/protocol/fake_connection_to_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_to_host_impl.cc
diff --git a/remoting/protocol/connection_to_host_impl.cc b/remoting/protocol/connection_to_host_impl.cc
index fbfdb3058fedb923017caf81b5a1f12525b3d314..bcca1b0fdb738651ac870071a0c4834b77b96b9e 100644
--- a/remoting/protocol/connection_to_host_impl.cc
+++ b/remoting/protocol/connection_to_host_impl.cc
@@ -18,8 +18,10 @@
#include "remoting/protocol/client_video_dispatcher.h"
#include "remoting/protocol/clipboard_stub.h"
#include "remoting/protocol/errors.h"
+#include "remoting/protocol/ice_transport.h"
#include "remoting/protocol/jingle_session_manager.h"
#include "remoting/protocol/transport.h"
+#include "remoting/protocol/transport_context.h"
#include "remoting/protocol/video_stub.h"
namespace remoting {
@@ -66,7 +68,7 @@ const char* ConnectionToHost::StateToString(State state) {
void ConnectionToHostImpl::Connect(
SignalStrategy* signal_strategy,
- scoped_ptr<TransportFactory> transport_factory,
+ scoped_refptr<TransportContext> transport_context,
scoped_ptr<Authenticator> authenticator,
const std::string& host_jid,
HostEventCallback* event_callback) {
@@ -91,7 +93,8 @@ void ConnectionToHostImpl::Connect(
signal_strategy_->AddListener(this);
- session_manager_.reset(new JingleSessionManager(transport_factory.Pass()));
+ session_manager_.reset(new JingleSessionManager(
+ make_scoped_ptr(new IceTransportFactory(transport_context))));
session_manager_->set_protocol_config(candidate_config_->Clone());
session_manager_->Init(signal_strategy_, this);
« no previous file with comments | « remoting/protocol/connection_to_host_impl.h ('k') | remoting/protocol/fake_connection_to_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698