gfe-relnote: Move Http2PriorityWriteScheduler from gfe/gfe2/spdy/ to third_party/spdy/core/ to allow QUIC to use it. No functional change expected, not flag protected. Also copy gtl::intrusive_list as SpdyIntrusiveList. PiperOrigin-RevId: 259535206 Change-Id: Ie600cc4a403ac90a6302824f98bc5e7fd86fca25
diff --git a/spdy/platform/api/spdy_containers.h b/spdy/platform/api/spdy_containers.h index e4f4c49..9a90556 100644 --- a/spdy/platform/api/spdy_containers.h +++ b/spdy/platform/api/spdy_containers.h
@@ -37,6 +37,12 @@ return SpdyHashStringPairImpl(a, b); } +// Used for maps that are typically small, then it is faster than (for example) +// hash_map which is optimized for large data sets. SpdySmallMap upgrades itself +// automatically to a SpdySmallMapImpl-specified map when it runs out of space. +template <typename Key, typename Value, int Size> +using SpdySmallMap = SpdySmallMapImpl<Key, Value, Size>; + } // namespace spdy #endif // QUICHE_SPDY_PLATFORM_API_SPDY_CONTAINERS_H_
diff --git a/spdy/platform/api/spdy_map_util.h b/spdy/platform/api/spdy_map_util.h new file mode 100644 index 0000000..e9b5f85 --- /dev/null +++ b/spdy/platform/api/spdy_map_util.h
@@ -0,0 +1,19 @@ +// Copyright (c) 2019 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 QUICHE_SPDY_PLATFORM_API_SPDY_MAP_UTIL_H_ +#define QUICHE_SPDY_PLATFORM_API_SPDY_MAP_UTIL_H_ + +#include "net/spdy/platform/impl/spdy_map_util_impl.h" + +namespace spdy { + +template <class Collection, class Key> +bool SpdyContainsKey(const Collection& collection, const Key& key) { + return SpdyContainsKeyImpl(collection, key); +} + +} // namespace spdy + +#endif // QUICHE_SPDY_PLATFORM_API_SPDY_MAP_UTIL_H_