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

Unified Diff: remoting/protocol/ice_connection_to_client.cc

Issue 1662673002: Add MessageChanneFactory interface and use it in ChannelDispatcherBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@framing
Patch Set: Created 4 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 | « remoting/protocol/ice_connection_to_client.h ('k') | remoting/protocol/ice_connection_to_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/ice_connection_to_client.cc
diff --git a/remoting/protocol/ice_connection_to_client.cc b/remoting/protocol/ice_connection_to_client.cc
index a5bae2d3c2c010c54e99d8dba449b69cf1f0ee66..b69bca05ec066eae01aa769764a0b40ecccc6a07 100644
--- a/remoting/protocol/ice_connection_to_client.cc
+++ b/remoting/protocol/ice_connection_to_client.cc
@@ -153,7 +153,7 @@ void IceConnectionToClient::OnSessionStateChange(Session::State state) {
base::Bind(&IceConnectionToClient::OnInputEventReceived,
base::Unretained(this)));
- video_dispatcher_->Init(transport_.GetStreamChannelFactory(), this);
+ video_dispatcher_->Init(transport_.GetChannelFactory(), this);
audio_writer_ = AudioWriter::Create(session_->config());
if (audio_writer_)
@@ -193,16 +193,6 @@ void IceConnectionToClient::OnChannelInitialized(
NotifyIfChannelsReady();
}
-void IceConnectionToClient::OnChannelError(
- ChannelDispatcherBase* channel_dispatcher,
- ErrorCode error) {
- DCHECK(thread_checker_.CalledOnValidThread());
-
- LOG(ERROR) << "Failed to connect channel "
- << channel_dispatcher->channel_name();
- Disconnect(error);
-}
-
void IceConnectionToClient::NotifyIfChannelsReady() {
DCHECK(thread_checker_.CalledOnValidThread());
« no previous file with comments | « remoting/protocol/ice_connection_to_client.h ('k') | remoting/protocol/ice_connection_to_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698