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

Unified Diff: remoting/client/chromoting_client.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/client/chromoting_client.h ('k') | remoting/client/jni/chromoting_jni_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/chromoting_client.cc
diff --git a/remoting/client/chromoting_client.cc b/remoting/client/chromoting_client.cc
index d9e0f37aa48816534827dd1ebda00fe81678f8b8..303150f2d865936a4109ab801a07e17ddad5efd6 100644
--- a/remoting/client/chromoting_client.cc
+++ b/remoting/client/chromoting_client.cc
@@ -18,7 +18,7 @@
#include "remoting/protocol/host_stub.h"
#include "remoting/protocol/negotiating_client_authenticator.h"
#include "remoting/protocol/session_config.h"
-#include "remoting/protocol/transport.h"
+#include "remoting/protocol/transport_context.h"
namespace remoting {
@@ -56,7 +56,7 @@ void ChromotingClient::SetConnectionToHostForTests(
void ChromotingClient::Start(
SignalStrategy* signal_strategy,
scoped_ptr<protocol::Authenticator> authenticator,
- scoped_ptr<protocol::TransportFactory> transport_factory,
+ scoped_refptr<protocol::TransportContext> transport_context,
const std::string& host_jid,
const std::string& capabilities) {
DCHECK(task_runner_->BelongsToCurrentThread());
@@ -68,8 +68,8 @@ void ChromotingClient::Start(
connection_->set_video_stub(video_renderer_->GetVideoStub());
connection_->set_audio_stub(audio_decode_scheduler_.get());
- connection_->Connect(signal_strategy, transport_factory.Pass(),
- authenticator.Pass(), host_jid, this);
+ connection_->Connect(signal_strategy, transport_context, authenticator.Pass(),
+ host_jid, this);
}
void ChromotingClient::SetCapabilities(
« no previous file with comments | « remoting/client/chromoting_client.h ('k') | remoting/client/jni/chromoting_jni_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698