| OLD | NEW |
| 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_writer.h" | 5 #include "remoting/protocol/protobuf_video_writer.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 #include "remoting/protocol/util.h" | 12 #include "remoting/protocol/util.h" |
| 14 | 13 |
| 15 namespace remoting { | 14 namespace remoting { |
| 16 namespace protocol { | 15 namespace protocol { |
| 17 | 16 |
| 18 ProtobufVideoWriter::ProtobufVideoWriter(base::MessageLoopProxy* message_loop) | 17 ProtobufVideoWriter::ProtobufVideoWriter(base::MessageLoopProxy* message_loop) |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 const base::Closure& done) { | 64 const base::Closure& done) { |
| 66 buffered_writer_->Write(SerializeAndFrameMessage(*packet), done); | 65 buffered_writer_->Write(SerializeAndFrameMessage(*packet), done); |
| 67 } | 66 } |
| 68 | 67 |
| 69 int ProtobufVideoWriter::GetPendingPackets() { | 68 int ProtobufVideoWriter::GetPendingPackets() { |
| 70 return buffered_writer_->GetBufferChunks(); | 69 return buffered_writer_->GetBufferChunks(); |
| 71 } | 70 } |
| 72 | 71 |
| 73 } // namespace protocol | 72 } // namespace protocol |
| 74 } // namespace remoting | 73 } // namespace remoting |
| OLD | NEW |