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

Unified Diff: remoting/protocol/connection_to_host.cc

Issue 9325036: Add abstract interfaces for the transport layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 | remoting/protocol/pepper_channel.h » ('j') | remoting/protocol/pepper_session_manager.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_to_host.cc
diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc
index 1ab6bd18d899f673643e1887e32573074c732379..f2d9297129bd19d41cd70fa64cbf334a68d5caee 100644
--- a/remoting/protocol/connection_to_host.cc
+++ b/remoting/protocol/connection_to_host.cc
@@ -16,8 +16,8 @@
#include "remoting/protocol/client_control_dispatcher.h"
#include "remoting/protocol/client_event_dispatcher.h"
#include "remoting/protocol/client_stub.h"
-#include "remoting/protocol/jingle_session_manager.h"
#include "remoting/protocol/pepper_session_manager.h"
+#include "remoting/protocol/pepper_transport_factory.h"
#include "remoting/protocol/video_reader.h"
#include "remoting/protocol/video_stub.h"
#include "remoting/protocol/util.h"
@@ -78,7 +78,9 @@ void ConnectionToHost::Connect(scoped_refptr<XmppProxy> xmpp_proxy,
signal_strategy_->AddListener(this);
signal_strategy_->Connect();
- session_manager_.reset(new PepperSessionManager(pp_instance_));
+ scoped_ptr<TransportFactory> transport_factory(
+ new PepperTransportFactory(pp_instance_));
+ session_manager_.reset(new PepperSessionManager(transport_factory.Pass()));
session_manager_->Init(signal_strategy_.get(), this,
NetworkSettings(allow_nat_traversal_));
}
« no previous file with comments | « no previous file | remoting/protocol/pepper_channel.h » ('j') | remoting/protocol/pepper_session_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698