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

Unified Diff: net/quic/quic_chromium_connection_helper.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_buffer_pool_test.cc ('k') | net/quic/quic_flags.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_chromium_connection_helper.h
diff --git a/net/quic/quic_chromium_connection_helper.h b/net/quic/quic_chromium_connection_helper.h
index 2b0464945d9fe80a7df4f614dd3f29a80baff80f..288d595b0791893ed5748d7e7f1e8dbf2818f936 100644
--- a/net/quic/quic_chromium_connection_helper.h
+++ b/net/quic/quic_chromium_connection_helper.h
@@ -13,9 +13,9 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "net/base/ip_endpoint.h"
+#include "net/quic/quic_buffer_pool.h"
#include "net/quic/quic_connection.h"
#include "net/quic/quic_protocol.h"
-#include "net/quic/quic_simple_buffer_allocator.h"
#include "net/quic/quic_time.h"
#include "net/udp/datagram_client_socket.h"
@@ -46,7 +46,8 @@ class NET_EXPORT_PRIVATE QuicChromiumConnectionHelper
base::TaskRunner* task_runner_;
const QuicClock* clock_;
QuicRandom* random_generator_;
- SimpleBufferAllocator buffer_allocator_;
+ // Create a buffer free list using no more than 8 * 8MB memory.
+ QuicBufferPool<kMaxPacketSize, 8> buffer_allocator_;
base::WeakPtrFactory<QuicChromiumConnectionHelper> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(QuicChromiumConnectionHelper);
« no previous file with comments | « net/quic/quic_buffer_pool_test.cc ('k') | net/quic/quic_flags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698