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

Unified Diff: remoting/protocol/host_video_dispatcher.cc

Issue 841773005: Cleanup channel dispatchers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/host_video_dispatcher.h ('k') | remoting/protocol/message_reader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/host_video_dispatcher.cc
diff --git a/remoting/protocol/host_video_dispatcher.cc b/remoting/protocol/host_video_dispatcher.cc
index 08ac857bbea74cc9e58fa42f2ef6dd1a7de5f9b9..b9a12c0294f28ac8e95d65ca52c8e6c000e8334f 100644
--- a/remoting/protocol/host_video_dispatcher.cc
+++ b/remoting/protocol/host_video_dispatcher.cc
@@ -20,14 +20,9 @@ HostVideoDispatcher::HostVideoDispatcher()
HostVideoDispatcher::~HostVideoDispatcher() {
}
-void HostVideoDispatcher::OnInitialized() {
- // TODO(sergeyu): Provide WriteFailedCallback for the buffered writer.
- writer_.Init(channel(), BufferedSocketWriter::WriteFailedCallback());
-}
-
void HostVideoDispatcher::ProcessVideoPacket(scoped_ptr<VideoPacket> packet,
const base::Closure& done) {
- writer_.Write(SerializeAndFrameMessage(*packet), done);
+ writer()->Write(SerializeAndFrameMessage(*packet), done);
}
} // namespace protocol
« no previous file with comments | « remoting/protocol/host_video_dispatcher.h ('k') | remoting/protocol/message_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698