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

Unified Diff: net/quic/platform/impl/quic_map_util_impl.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/platform/api/quic_map_util.h ('k') | net/quic/test_tools/quic_framer_peer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/platform/impl/quic_map_util_impl.h
diff --git a/net/quic/platform/impl/quic_map_util_impl.h b/net/quic/platform/impl/quic_map_util_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..833f5ab5f21c4386829238314d26761a8518b8e1
--- /dev/null
+++ b/net/quic/platform/impl/quic_map_util_impl.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_IMPL_QUIC_MAP_UTIL_IMPL_H_
+#define NET_QUIC_PLATFORM_IMPL_QUIC_MAP_UTIL_IMPL_H_
+
+#include "base/stl_util.h"
+
+namespace net {
+
+template <class Collection, class Key>
+bool QuicContainsKeyImpl(const Collection& collection, const Key& key) {
+ return base::ContainsKey(collection, key);
+}
+
+template <typename Collection, typename Value>
+bool QuicContainsValueImpl(const Collection& collection, const Value& value) {
+ return base::ContainsValue(collection, value);
+}
+
+} // namespace net
+
+#endif // NET_QUIC_PLATFORM_IMPL_QUIC_MAP_UTIL_IMPL_H_
« no previous file with comments | « net/quic/platform/api/quic_map_util.h ('k') | net/quic/test_tools/quic_framer_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698