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

Side by Side Diff: remoting/protocol/protobuf_video_reader.cc

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/protocol/protobuf_video_reader.h" 5 #include "remoting/protocol/protobuf_video_reader.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/task.h"
9 #include "net/socket/stream_socket.h" 8 #include "net/socket/stream_socket.h"
10 #include "remoting/base/constants.h" 9 #include "remoting/base/constants.h"
11 #include "remoting/proto/video.pb.h" 10 #include "remoting/proto/video.pb.h"
12 #include "remoting/protocol/session.h" 11 #include "remoting/protocol/session.h"
13 12
14 namespace remoting { 13 namespace remoting {
15 namespace protocol { 14 namespace protocol {
16 15
17 ProtobufVideoReader::ProtobufVideoReader(VideoPacketFormat::Encoding encoding) 16 ProtobufVideoReader::ProtobufVideoReader(VideoPacketFormat::Encoding encoding)
18 : session_(NULL), 17 : session_(NULL),
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 initialized_callback_.Run(true); 53 initialized_callback_.Run(true);
55 } 54 }
56 55
57 void ProtobufVideoReader::OnNewData(VideoPacket* packet, 56 void ProtobufVideoReader::OnNewData(VideoPacket* packet,
58 const base::Closure& done_task) { 57 const base::Closure& done_task) {
59 video_stub_->ProcessVideoPacket(packet, done_task); 58 video_stub_->ProcessVideoPacket(packet, done_task);
60 } 59 }
61 60
62 } // namespace protocol 61 } // namespace protocol
63 } // namespace remoting 62 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/jingle_session_unittest.cc ('k') | remoting/protocol/protobuf_video_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698