extensions: Move RecordRequestHeader and RecordResponseHeader to fixed_flat_map.
Rather than copy to the heap to make a dynamically modifiable flat_map, we can build the map into .data.rel.ro at compile time. To support current static_assert, base::flat_tree::size is made constexpr if the underlying collection is, as it is for fixed_flat_map and fixed_flat_set (specifically, std::array). For consistency, max_size and empty are similarly updated. Bug: None Change-Id: Ia21850b48e928e328f9cb85702b561925cca2d3e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2566034Reviewed-by:Jan Wilken Dörrie <jdoerrie@chromium.org> Reviewed-by:
Devlin <rdevlin.cronin@chromium.org> Commit-Queue: Jeremy Roman <jbroman@chromium.org> Auto-Submit: Jeremy Roman <jbroman@chromium.org> Cr-Commit-Position: refs/heads/master@{#832358}
Showing
This diff is collapsed.
Please register or sign in to comment