| Index: net/quic/quic_protocol.h
|
| diff --git a/net/quic/quic_protocol.h b/net/quic/quic_protocol.h
|
| index 29214034c0e3eb3c87b8433b937c9bd4c0b90ce6..9ea4ee4074a7ef156d5750c03ed94ed93c31c14d 100644
|
| --- a/net/quic/quic_protocol.h
|
| +++ b/net/quic/quic_protocol.h
|
| @@ -740,8 +740,17 @@ class NET_EXPORT_PRIVATE QuicBufferAllocator {
|
| // Returns or allocates a new buffer of |size|. Never returns null.
|
| virtual char* New(size_t size) = 0;
|
|
|
| + // Returns or allocates a new buffer of |size| if |flag_enable| is true.
|
| + // Otherwise, returns a buffer that is compatible with this class directly
|
| + // with operator new. Never returns null.
|
| + virtual char* New(size_t size, bool flag_enable) = 0;
|
| +
|
| // Releases a buffer.
|
| virtual void Delete(char* buffer) = 0;
|
| +
|
| + // Marks the allocator as being idle. Serves as a hint to notify the allocator
|
| + // that it should release any resources it's still holding on to.
|
| + virtual void MarkAllocatorIdle() {}
|
| };
|
|
|
| // Deleter for stream buffers. Copyable to support platforms where the deleter
|
|
|