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

Unified Diff: net/quic/platform/api/quic_map_util.h

Issue 2651673004: Add quic_map_util. (Closed)
Patch Set: Created 3 years, 11 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/quic/core/spdy_utils.cc ('k') | net/quic/platform/impl/quic_map_util_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_map_util.h
diff --git a/net/quic/platform/api/quic_map_util.h b/net/quic/platform/api/quic_map_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..fbf7e3cb290b469fef9410f355d9e4cc34b5b84d
--- /dev/null
+++ b/net/quic/platform/api/quic_map_util.h
@@ -0,0 +1,24 @@
+// Copyright (c) 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_MAP_UTIL_H_
+#define NET_QUIC_PLATFORM_API_QUIC_MAP_UTIL_H_
+
+#include "net/quic/platform/impl/quic_map_util_impl.h"
+
+namespace net {
+
+template <class Collection, class Key>
+bool QuicContainsKey(const Collection& collection, const Key& key) {
+ return QuicContainsKeyImpl(collection, key);
+}
+
+template <typename Collection, typename Value>
+bool QuicContainsValue(const Collection& collection, const Value& value) {
+ return QuicContainsValueImpl(collection, value);
+}
+
+} // namespace net
+
+#endif // NET_QUIC_PLATFORM_API_QUIC_MAP_UTIL_H_
« no previous file with comments | « net/quic/core/spdy_utils.cc ('k') | net/quic/platform/impl/quic_map_util_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698