OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/buffered_socket_writer.h" | 5 #include "remoting/protocol/buffered_socket_writer.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/stl_util-inl.h" | 8 #include "base/stl_util.h" |
9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
10 | 10 |
11 namespace remoting { | 11 namespace remoting { |
12 namespace protocol { | 12 namespace protocol { |
13 | 13 |
14 class BufferedSocketWriterBase::PendingPacket { | 14 class BufferedSocketWriterBase::PendingPacket { |
15 public: | 15 public: |
16 PendingPacket(scoped_refptr<net::IOBufferWithSize> data, Task* done_task) | 16 PendingPacket(scoped_refptr<net::IOBufferWithSize> data, Task* done_task) |
17 : data_(data), | 17 : data_(data), |
18 done_task_(done_task) { | 18 done_task_(done_task) { |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 buffer_size_ -= queue_.front()->data()->size(); | 215 buffer_size_ -= queue_.front()->data()->size(); |
216 PopQueue(); | 216 PopQueue(); |
217 } | 217 } |
218 | 218 |
219 void BufferedDatagramWriter::OnError_Locked(int result) { | 219 void BufferedDatagramWriter::OnError_Locked(int result) { |
220 // Nothing to do here. | 220 // Nothing to do here. |
221 } | 221 } |
222 | 222 |
223 } // namespace protocol | 223 } // namespace protocol |
224 } // namespace remoting | 224 } // namespace remoting |
OLD | NEW |