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

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
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 ad49b7d948f978bf1212a2891f01f175fa2b9e8b..c38db6c8a332e3f848697ba355d6169ba7f8993f 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) {
@@ -92,7 +94,8 @@ void ConnectionToHostImpl::Connect(
signal_strategy_->AddListener(this);
signal_strategy_->Connect();
- 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);

Powered by Google App Engine
This is Rietveld 408576698