Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Side by Side Diff: content/common/net_adapters.cc

Issue 2906543002: Add support for reading blobs when using the network service. (Closed)
Patch Set: fix threading issue with weakptr Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/net_adapters.h ('k') | content/network/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/common/net_adapters.h ('k') | content/network/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698