| 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/location.h" |
| 7 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
| 8 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 9 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| 10 | 11 |
| 11 namespace remoting { | 12 namespace remoting { |
| 12 namespace protocol { | 13 namespace protocol { |
| 13 | 14 |
| 14 class BufferedSocketWriterBase::PendingPacket { | 15 class BufferedSocketWriterBase::PendingPacket { |
| 15 public: | 16 public: |
| 16 PendingPacket(scoped_refptr<net::IOBufferWithSize> data, Task* done_task) | 17 PendingPacket(scoped_refptr<net::IOBufferWithSize> data, Task* done_task) |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 buffer_size_ -= queue_.front()->data()->size(); | 222 buffer_size_ -= queue_.front()->data()->size(); |
| 222 PopQueue(); | 223 PopQueue(); |
| 223 } | 224 } |
| 224 | 225 |
| 225 void BufferedDatagramWriter::OnError_Locked(int result) { | 226 void BufferedDatagramWriter::OnError_Locked(int result) { |
| 226 // Nothing to do here. | 227 // Nothing to do here. |
| 227 } | 228 } |
| 228 | 229 |
| 229 } // namespace protocol | 230 } // namespace protocol |
| 230 } // namespace remoting | 231 } // namespace remoting |
| OLD | NEW |