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

Unified Diff: remoting/protocol/protobuf_video_writer.cc

Issue 8116021: Switch remoting/protocol to new callbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 2 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/protobuf_video_writer.h ('k') | remoting/protocol/protocol_mock_objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/protobuf_video_writer.cc
diff --git a/remoting/protocol/protobuf_video_writer.cc b/remoting/protocol/protobuf_video_writer.cc
index cb4399b25e4226123b1050e19ddf0231ce148723..88941c42e6adb6572b7a67c3c8d0896c708fc89a 100644
--- a/remoting/protocol/protobuf_video_writer.cc
+++ b/remoting/protocol/protobuf_video_writer.cc
@@ -40,7 +40,7 @@ void ProtobufVideoWriter::OnChannelReady(net::StreamSocket* socket) {
DCHECK(!channel_.get());
channel_.reset(socket);
// TODO(sergeyu): Provide WriteFailedCallback for the buffered writer.
- buffered_writer_->Init(socket, NULL);
+ buffered_writer_->Init(socket, BufferedSocketWriter::WriteFailedCallback());
initialized_callback_.Run(true);
}
@@ -51,7 +51,7 @@ void ProtobufVideoWriter::Close() {
}
void ProtobufVideoWriter::ProcessVideoPacket(const VideoPacket* packet,
- Task* done) {
+ const base::Closure& done) {
buffered_writer_->Write(SerializeAndFrameMessage(*packet), done);
}
« no previous file with comments | « remoting/protocol/protobuf_video_writer.h ('k') | remoting/protocol/protocol_mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698