QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef QUICHE_SPDY_PLATFORM_API_SPDY_ESTIMATE_MEMORY_USAGE_H_ |
| 6 | #define QUICHE_SPDY_PLATFORM_API_SPDY_ESTIMATE_MEMORY_USAGE_H_ |
| 7 | |
| 8 | #include <cstddef> |
| 9 | |
| 10 | #include "net/spdy/platform/impl/spdy_estimate_memory_usage_impl.h" |
| 11 | |
| 12 | namespace spdy { |
| 13 | |
| 14 | template <class T> |
| 15 | size_t SpdyEstimateMemoryUsage(const T& object) { |
| 16 | return SpdyEstimateMemoryUsageImpl(object); |
| 17 | } |
| 18 | |
| 19 | } // namespace spdy |
| 20 | |
| 21 | #endif // QUICHE_SPDY_PLATFORM_API_SPDY_ESTIMATE_MEMORY_USAGE_H_ |