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

Unified Diff: remoting/protocol/protobuf_video_reader.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_reader.h ('k') | remoting/protocol/protobuf_video_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/protobuf_video_reader.cc
diff --git a/remoting/protocol/protobuf_video_reader.cc b/remoting/protocol/protobuf_video_reader.cc
index 08b1828afa715ab533cf6819434772d7de94e033..cf5d1a989689723180888712dbe5f3f02d5dfa2a 100644
--- a/remoting/protocol/protobuf_video_reader.cc
+++ b/remoting/protocol/protobuf_video_reader.cc
@@ -40,11 +40,13 @@ void ProtobufVideoReader::OnChannelReady(net::StreamSocket* socket) {
DCHECK(!channel_.get());
channel_.reset(socket);
- reader_.Init(socket, NewCallback(this, &ProtobufVideoReader::OnNewData));
+ reader_.Init(socket, base::Bind(&ProtobufVideoReader::OnNewData,
+ base::Unretained(this)));
initialized_callback_.Run(true);
}
-void ProtobufVideoReader::OnNewData(VideoPacket* packet, Task* done_task) {
+void ProtobufVideoReader::OnNewData(VideoPacket* packet,
+ const base::Closure& done_task) {
video_stub_->ProcessVideoPacket(packet, done_task);
}
« no previous file with comments | « remoting/protocol/protobuf_video_reader.h ('k') | remoting/protocol/protobuf_video_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698