OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/base/buffered_socket_writer.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
12 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
13 | 13 |
14 namespace remoting { | 14 namespace remoting { |
15 namespace protocol { | |
16 | 15 |
17 struct BufferedSocketWriterBase::PendingPacket { | 16 struct BufferedSocketWriterBase::PendingPacket { |
18 PendingPacket(scoped_refptr<net::IOBufferWithSize> data, | 17 PendingPacket(scoped_refptr<net::IOBufferWithSize> data, |
19 const base::Closure& done_task) | 18 const base::Closure& done_task) |
20 : data(data), | 19 : data(data), |
21 done_task(done_task) { | 20 done_task(done_task) { |
22 } | 21 } |
23 | 22 |
24 scoped_refptr<net::IOBufferWithSize> data; | 23 scoped_refptr<net::IOBufferWithSize> data; |
25 base::Closure done_task; | 24 base::Closure done_task; |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 return PopQueue(); | 224 return PopQueue(); |
226 } | 225 } |
227 | 226 |
228 void BufferedDatagramWriter::OnError(int result) { | 227 void BufferedDatagramWriter::OnError(int result) { |
229 // Nothing to do here. | 228 // Nothing to do here. |
230 } | 229 } |
231 | 230 |
232 BufferedDatagramWriter::~BufferedDatagramWriter() { | 231 BufferedDatagramWriter::~BufferedDatagramWriter() { |
233 } | 232 } |
234 | 233 |
235 } // namespace protocol | |
236 } // namespace remoting | 234 } // namespace remoting |
OLD | NEW |