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

Unified Diff: remoting/protocol/host_video_dispatcher.cc

Issue 1655433002: Remove done notifications from incoming message handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/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 530b503fc9c8512e0f587f8397fa630d1ed50524..0d7c0de53997277767537159cf5f6165dc823b23 100644
--- a/remoting/protocol/host_video_dispatcher.cc
+++ b/remoting/protocol/host_video_dispatcher.cc
@@ -20,23 +20,18 @@ HostVideoDispatcher::HostVideoDispatcher()
parser_(
base::Bind(&HostVideoDispatcher::OnVideoAck, base::Unretained(this)),
reader()),
- video_feedback_stub_(nullptr) {
-}
+ video_feedback_stub_(nullptr) {}
-HostVideoDispatcher::~HostVideoDispatcher() {
-}
+HostVideoDispatcher::~HostVideoDispatcher() {}
void HostVideoDispatcher::ProcessVideoPacket(scoped_ptr<VideoPacket> packet,
const base::Closure& done) {
writer()->Write(SerializeAndFrameMessage(*packet), done);
}
-void HostVideoDispatcher::OnVideoAck(scoped_ptr<VideoAck> ack,
- const base::Closure& done) {
+void HostVideoDispatcher::OnVideoAck(scoped_ptr<VideoAck> ack) {
if (video_feedback_stub_)
video_feedback_stub_->ProcessVideoAck(std::move(ack));
-
- done.Run();
}
} // 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