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

Side by Side Diff: net/quic/platform/impl/quic_estimate_memory_usage_impl.h

Issue 2687333002: Add shim for EstimateMemoryUsage in Quic (Closed)
Patch Set: self Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « net/quic/platform/api/quic_estimate_memory_usage.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 NET_QUIC_PLATFORM_IMPL_QUIC_ESTIMATE_MEMORY_USAGE_IMPL_H_
6 #define NET_QUIC_PLATFORM_IMPL_QUIC_ESTIMATE_MEMORY_USAGE_IMPL_H_
7
8 #include <cstddef>
9
10 #include "base/trace_event/memory_usage_estimator.h"
11
12 namespace net {
13
14 template <class T>
15 size_t QuicEstimateMemoryUsageImpl(const T& object) {
16 return base::trace_event::EstimateMemoryUsage(object);
17 }
18
19 } // namespace net
20
21 #endif // NET_QUIC_PLATFORM_IMPL_QUIC_ESTIMATE_MEMORY_USAGE_IMPL_H_
OLDNEW
« no previous file with comments | « net/quic/platform/api/quic_estimate_memory_usage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698