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

Unified Diff: net/quic/platform/api/quic_estimate_memory_usage.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/BUILD.gn ('k') | net/quic/platform/impl/quic_estimate_memory_usage_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/platform/api/quic_estimate_memory_usage.h
diff --git a/net/quic/platform/api/quic_estimate_memory_usage.h b/net/quic/platform/api/quic_estimate_memory_usage.h
new file mode 100644
index 0000000000000000000000000000000000000000..c7ed22efcd97d511e89e2d1e49e2100ebe7810e0
--- /dev/null
+++ b/net/quic/platform/api/quic_estimate_memory_usage.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_API_QUIC_ESTIMATE_MEMORY_USAGE_H_
+#define NET_QUIC_PLATFORM_API_QUIC_ESTIMATE_MEMORY_USAGE_H_
+
+#include <cstddef>
+
+#include "net/quic/platform/impl/quic_estimate_memory_usage_impl.h"
+
+namespace net {
+
+template <class T>
+size_t QuicEstimateMemoryUsage(const T& object) {
+ return QuicEstimateMemoryUsageImpl(object);
+}
+
+} // namespace net
+
+#endif // NET_QUIC_PLATFORM_API_QUIC_ESTIMATE_MEMORY_USAGE_H_
« no previous file with comments | « net/BUILD.gn ('k') | net/quic/platform/impl/quic_estimate_memory_usage_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698