| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/socket/stream_socket.h" | 8 #include "net/socket/stream_socket.h" |
| 9 #include "remoting/base/constants.h" | 9 #include "remoting/base/constants.h" |
| 10 #include "remoting/proto/video.pb.h" | 10 #include "remoting/proto/video.pb.h" |
| 11 #include "remoting/protocol/channel_factory.h" | |
| 12 #include "remoting/protocol/session.h" | 11 #include "remoting/protocol/session.h" |
| 12 #include "remoting/protocol/stream_channel_factory.h" |
| 13 | 13 |
| 14 namespace remoting { | 14 namespace remoting { |
| 15 namespace protocol { | 15 namespace protocol { |
| 16 | 16 |
| 17 ProtobufVideoReader::ProtobufVideoReader(VideoPacketFormat::Encoding encoding) | 17 ProtobufVideoReader::ProtobufVideoReader(VideoPacketFormat::Encoding encoding) |
| 18 : encoding_(encoding), | 18 : encoding_(encoding), |
| 19 channel_factory_(NULL), | 19 channel_factory_(NULL), |
| 20 video_stub_(NULL) { | 20 video_stub_(NULL) { |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 initialized_callback_.Run(true); | 54 initialized_callback_.Run(true); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void ProtobufVideoReader::OnNewData(scoped_ptr<VideoPacket> packet, | 57 void ProtobufVideoReader::OnNewData(scoped_ptr<VideoPacket> packet, |
| 58 const base::Closure& done_task) { | 58 const base::Closure& done_task) { |
| 59 video_stub_->ProcessVideoPacket(packet.Pass(), done_task); | 59 video_stub_->ProcessVideoPacket(packet.Pass(), done_task); |
| 60 } | 60 } |
| 61 | 61 |
| 62 } // namespace protocol | 62 } // namespace protocol |
| 63 } // namespace remoting | 63 } // namespace remoting |
| OLD | NEW |