diff --git a/net/quiche/common/platform/impl/DEPS b/net/quiche/common/platform/impl/DEPS new file mode 100644 index 00000000000000..46f9ab78f6e8b0 --- /dev/null +++ b/net/quiche/common/platform/impl/DEPS @@ -0,0 +1,6 @@ +include_rules = [ + # This is a temporary rule to simplify migrating QUICHE to using Abseil + # directly. + # TODO(b/166325009): remove this rule. + "+third_party/abseil-cpp/absl/container/node_hash_map.h", +] diff --git a/net/quiche/common/platform/impl/quiche_unordered_containers_impl.h b/net/quiche/common/platform/impl/quiche_unordered_containers_impl.h index fe48f20c3b1e3d..d08485fe84a604 100644 --- a/net/quiche/common/platform/impl/quiche_unordered_containers_impl.h +++ b/net/quiche/common/platform/impl/quiche_unordered_containers_impl.h @@ -7,20 +7,16 @@ #include +#include "third_party/abseil-cpp/absl/container/node_hash_map.h" + namespace quiche { // The default hasher used by hash tables. template -using QuicheDefaultHasherImpl = std::hash; - -template ::key_equal, - typename Alloc = - typename std::unordered_map::allocator_type> -using QuicheUnorderedMapImpl = std::unordered_map; +using QuicheDefaultHasherImpl = absl::Hash; + +template +using QuicheUnorderedMapImpl = absl::node_hash_map; } // namespace quiche