OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "content/network/net_adapters.h" | 5 #include "content/common/net_adapters.h" |
6 | 6 |
7 #include "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
11 namespace { | 11 namespace { |
12 const uint32_t kMaxBufSize = 64 * 1024; | 12 const uint32_t kMaxBufSize = 64 * 1024; |
13 } | 13 } |
14 | 14 |
15 NetToMojoPendingBuffer::NetToMojoPendingBuffer( | 15 NetToMojoPendingBuffer::NetToMojoPendingBuffer( |
(...skipping 29 matching lines...) Expand all Loading... |
45 return std::move(handle_); | 45 return std::move(handle_); |
46 } | 46 } |
47 | 47 |
48 NetToMojoIOBuffer::NetToMojoIOBuffer(NetToMojoPendingBuffer* pending_buffer) | 48 NetToMojoIOBuffer::NetToMojoIOBuffer(NetToMojoPendingBuffer* pending_buffer) |
49 : net::WrappedIOBuffer(pending_buffer->buffer()), | 49 : net::WrappedIOBuffer(pending_buffer->buffer()), |
50 pending_buffer_(pending_buffer) {} | 50 pending_buffer_(pending_buffer) {} |
51 | 51 |
52 NetToMojoIOBuffer::~NetToMojoIOBuffer() {} | 52 NetToMojoIOBuffer::~NetToMojoIOBuffer() {} |
53 | 53 |
54 } // namespace content | 54 } // namespace content |
OLD | NEW |