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

Unified Diff: remoting/protocol/connection_to_host_impl.cc

Issue 1530523002: More cleanups in JingleSessionManager interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@transport_context
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/jingle_session_manager.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 bcca1b0fdb738651ac870071a0c4834b77b96b9e..c17b41efffe74b5a0ded0a187d7e520e8bcc8f23 100644
--- a/remoting/protocol/connection_to_host_impl.cc
+++ b/remoting/protocol/connection_to_host_impl.cc
@@ -94,9 +94,9 @@ void ConnectionToHostImpl::Connect(
signal_strategy_->AddListener(this);
session_manager_.reset(new JingleSessionManager(
- make_scoped_ptr(new IceTransportFactory(transport_context))));
+ make_scoped_ptr(new IceTransportFactory(transport_context)),
+ signal_strategy));
session_manager_->set_protocol_config(candidate_config_->Clone());
- session_manager_->Init(signal_strategy_, this);
SetState(CONNECTING, OK);
@@ -188,14 +188,6 @@ bool ConnectionToHostImpl::OnSignalStrategyIncomingStanza(
return false;
}
-void ConnectionToHostImpl::OnIncomingSession(
- Session* session,
- SessionManager::IncomingSessionResponse* response) {
- DCHECK(CalledOnValidThread());
- // Client always rejects incoming sessions.
- *response = SessionManager::DECLINE;
-}
-
void ConnectionToHostImpl::OnSessionStateChange(Session::State state) {
DCHECK(CalledOnValidThread());
DCHECK(event_callback_);
« no previous file with comments | « remoting/protocol/connection_to_host_impl.h ('k') | remoting/protocol/jingle_session_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698