| Index: net/quic/platform/impl/quic_estimate_memory_usage_impl.h
|
| diff --git a/net/quic/platform/impl/quic_estimate_memory_usage_impl.h b/net/quic/platform/impl/quic_estimate_memory_usage_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fdfc6ce22f71bb221e0bfa5e46eca320bb8c5fc4
|
| --- /dev/null
|
| +++ b/net/quic/platform/impl/quic_estimate_memory_usage_impl.h
|
| @@ -0,0 +1,21 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef NET_QUIC_PLATFORM_IMPL_QUIC_ESTIMATE_MEMORY_USAGE_IMPL_H_
|
| +#define NET_QUIC_PLATFORM_IMPL_QUIC_ESTIMATE_MEMORY_USAGE_IMPL_H_
|
| +
|
| +#include <cstddef>
|
| +
|
| +#include "base/trace_event/memory_usage_estimator.h"
|
| +
|
| +namespace net {
|
| +
|
| +template <class T>
|
| +size_t QuicEstimateMemoryUsageImpl(const T& object) {
|
| + return base::trace_event::EstimateMemoryUsage(object);
|
| +}
|
| +
|
| +} // namespace net
|
| +
|
| +#endif // NET_QUIC_PLATFORM_IMPL_QUIC_ESTIMATE_MEMORY_USAGE_IMPL_H_
|
|
|