QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef QUICHE_QUIC_CORE_QUIC_SIMPLE_BUFFER_ALLOCATOR_H_ |
| 6 | #define QUICHE_QUIC_CORE_QUIC_SIMPLE_BUFFER_ALLOCATOR_H_ |
| 7 | |
| 8 | #include "net/third_party/quiche/src/quic/core/quic_buffer_allocator.h" |
| 9 | #include "net/third_party/quiche/src/quic/platform/api/quic_export.h" |
| 10 | |
| 11 | namespace quic { |
| 12 | |
| 13 | class QUIC_EXPORT_PRIVATE SimpleBufferAllocator : public QuicBufferAllocator { |
| 14 | public: |
| 15 | char* New(size_t size) override; |
| 16 | char* New(size_t size, bool flag_enable) override; |
| 17 | void Delete(char* buffer) override; |
| 18 | }; |
| 19 | |
| 20 | } // namespace quic |
| 21 | |
| 22 | #endif // QUICHE_QUIC_CORE_QUIC_SIMPLE_BUFFER_ALLOCATOR_H_ |