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

Side by Side Diff: net/quic/quic_simple_buffer_allocator.cc

Issue 1577473002: relnote: QUIC streamable frames can now use a freelist for their packet buffers, Guarded by gfe2_fe… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@19_CL_111440524
Patch Set: cast to size_t Created 4 years, 11 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 | « net/quic/quic_simple_buffer_allocator.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "net/quic/quic_simple_buffer_allocator.h" 5 #include "net/quic/quic_simple_buffer_allocator.h"
6 6
7 namespace net { 7 namespace net {
8
9 char* SimpleBufferAllocator::New(size_t size) { 8 char* SimpleBufferAllocator::New(size_t size) {
10 return new char[size]; 9 return new char[size];
11 } 10 }
12 11
12 char* SimpleBufferAllocator::New(size_t size, bool /* flag_enable */) {
13 return New(size);
14 }
15
13 void SimpleBufferAllocator::Delete(char* buffer) { 16 void SimpleBufferAllocator::Delete(char* buffer) {
14 delete[] buffer; 17 delete[] buffer;
15 } 18 }
16 19
17 } // namespace net 20 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_simple_buffer_allocator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698