QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef QUICHE_SPDY_CORE_SPDY_HEADER_BLOCK_H_ |
| 6 | #define QUICHE_SPDY_CORE_SPDY_HEADER_BLOCK_H_ |
| 7 | |
| 8 | #include <stddef.h> |
| 9 | |
QUICHE team | bbce603 | 2020-01-03 07:42:10 -0800 | [diff] [blame] | 10 | #include <functional> |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 11 | #include <list> |
bnc | 4471291 | 2019-08-15 18:58:14 -0700 | [diff] [blame] | 12 | #include <string> |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 13 | #include <utility> |
| 14 | #include <vector> |
| 15 | |
bnc | 45ccf4b | 2020-01-21 19:05:27 -0800 | [diff] [blame] | 16 | #include "net/third_party/quiche/src/common/platform/api/quiche_export.h" |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 17 | #include "net/third_party/quiche/src/common/platform/api/quiche_string_piece.h" |
QUICHE team | 6b29700 | 2019-12-09 09:37:56 -0800 | [diff] [blame] | 18 | #include "net/third_party/quiche/src/spdy/core/spdy_header_storage.h" |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 19 | #include "net/third_party/quiche/src/spdy/platform/api/spdy_containers.h" |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 20 | #include "net/third_party/quiche/src/spdy/platform/api/spdy_macros.h" |
QUICHE team | a0795f0 | 2020-01-03 13:01:12 -0800 | [diff] [blame] | 21 | #include "net/third_party/quiche/src/spdy/platform/api/spdy_string_utils.h" |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 22 | |
| 23 | namespace spdy { |
| 24 | |
| 25 | namespace test { |
| 26 | class SpdyHeaderBlockPeer; |
| 27 | class ValueProxyPeer; |
| 28 | } // namespace test |
| 29 | |
dschinazi | b2b2615 | 2020-07-01 10:17:25 -0700 | [diff] [blame] | 30 | #ifndef SPDY_HEADER_DEBUG |
| 31 | #if !defined(NDEBUG) || defined(ADDRESS_SANITIZER) |
| 32 | #define SPDY_HEADER_DEBUG 1 |
| 33 | #else // !defined(NDEBUG) || defined(ADDRESS_SANITIZER) |
| 34 | #define SPDY_HEADER_DEBUG 0 |
| 35 | #endif // !defined(NDEBUG) || defined(ADDRESS_SANITIZER) |
| 36 | #endif // SPDY_HEADER_DEBUG |
| 37 | |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 38 | // This class provides a key-value map that can be used to store SPDY header |
| 39 | // names and values. This data structure preserves insertion order. |
| 40 | // |
| 41 | // Under the hood, this data structure uses large, contiguous blocks of memory |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 42 | // to store names and values. Lookups may be performed with QuicheStringPiece |
| 43 | // keys, and values are returned as QuicheStringPieces (via ValueProxy, below). |
| 44 | // Value QuicheStringPieces are valid as long as the SpdyHeaderBlock exists; |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 45 | // allocated memory is never freed until SpdyHeaderBlock's destruction. |
| 46 | // |
| 47 | // This implementation does not make much of an effort to minimize wasted space. |
| 48 | // It's expected that keys are rarely deleted from a SpdyHeaderBlock. |
bnc | 45ccf4b | 2020-01-21 19:05:27 -0800 | [diff] [blame] | 49 | class QUICHE_EXPORT_PRIVATE SpdyHeaderBlock { |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 50 | private: |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 51 | // Stores a list of value fragments that can be joined later with a |
| 52 | // key-dependent separator. |
bnc | 45ccf4b | 2020-01-21 19:05:27 -0800 | [diff] [blame] | 53 | class QUICHE_EXPORT_PRIVATE HeaderValue { |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 54 | public: |
QUICHE team | 6b29700 | 2019-12-09 09:37:56 -0800 | [diff] [blame] | 55 | HeaderValue(SpdyHeaderStorage* storage, |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 56 | quiche::QuicheStringPiece key, |
| 57 | quiche::QuicheStringPiece initial_value); |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 58 | |
| 59 | // Moves are allowed. |
| 60 | HeaderValue(HeaderValue&& other); |
| 61 | HeaderValue& operator=(HeaderValue&& other); |
| 62 | |
QUICHE team | 0b74550 | 2019-12-10 11:02:08 -0800 | [diff] [blame] | 63 | void set_storage(SpdyHeaderStorage* storage); |
| 64 | |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 65 | // Copies are not. |
| 66 | HeaderValue(const HeaderValue& other) = delete; |
| 67 | HeaderValue& operator=(const HeaderValue& other) = delete; |
| 68 | |
| 69 | ~HeaderValue(); |
| 70 | |
| 71 | // Consumes at most |fragment.size()| bytes of memory. |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 72 | void Append(quiche::QuicheStringPiece fragment); |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 73 | |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 74 | quiche::QuicheStringPiece value() const { return as_pair().second; } |
| 75 | const std::pair<quiche::QuicheStringPiece, quiche::QuicheStringPiece>& |
| 76 | as_pair() const; |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 77 | |
| 78 | // Size estimate including separators. Used when keys are erased from |
| 79 | // SpdyHeaderBlock. |
| 80 | size_t SizeEstimate() const { return size_; } |
| 81 | |
| 82 | private: |
| 83 | // May allocate a large contiguous region of memory to hold the concatenated |
| 84 | // fragments and separators. |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 85 | quiche::QuicheStringPiece ConsolidatedValue() const; |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 86 | |
QUICHE team | 6b29700 | 2019-12-09 09:37:56 -0800 | [diff] [blame] | 87 | mutable SpdyHeaderStorage* storage_; |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 88 | mutable std::vector<quiche::QuicheStringPiece> fragments_; |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 89 | // The first element is the key; the second is the consolidated value. |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 90 | mutable std::pair<quiche::QuicheStringPiece, quiche::QuicheStringPiece> |
| 91 | pair_; |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 92 | size_t size_ = 0; |
| 93 | size_t separator_size_ = 0; |
| 94 | }; |
| 95 | |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 96 | typedef SpdyLinkedHashMap<quiche::QuicheStringPiece, |
QUICHE team | bbce603 | 2020-01-03 07:42:10 -0800 | [diff] [blame] | 97 | HeaderValue, |
QUICHE team | a0795f0 | 2020-01-03 13:01:12 -0800 | [diff] [blame] | 98 | SpdyStringPieceCaseHash, |
| 99 | SpdyStringPieceCaseEq> |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 100 | MapType; |
| 101 | |
| 102 | public: |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 103 | typedef std::pair<quiche::QuicheStringPiece, quiche::QuicheStringPiece> |
| 104 | value_type; |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 105 | |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 106 | // Provides iteration over a sequence of std::pair<QuicheStringPiece, |
| 107 | // QuicheStringPiece>, even though the underlying MapType::value_type is |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 108 | // different. Dereferencing the iterator will result in memory allocation for |
| 109 | // multi-value headers. |
bnc | 45ccf4b | 2020-01-21 19:05:27 -0800 | [diff] [blame] | 110 | class QUICHE_EXPORT_PRIVATE iterator { |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 111 | public: |
| 112 | // The following type definitions fulfill the requirements for iterator |
| 113 | // implementations. |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 114 | typedef std::pair<quiche::QuicheStringPiece, quiche::QuicheStringPiece> |
| 115 | value_type; |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 116 | typedef value_type& reference; |
| 117 | typedef value_type* pointer; |
| 118 | typedef std::forward_iterator_tag iterator_category; |
| 119 | typedef MapType::iterator::difference_type difference_type; |
| 120 | |
| 121 | // In practice, this iterator only offers access to const value_type. |
| 122 | typedef const value_type& const_reference; |
| 123 | typedef const value_type* const_pointer; |
| 124 | |
| 125 | explicit iterator(MapType::const_iterator it); |
| 126 | iterator(const iterator& other); |
| 127 | ~iterator(); |
| 128 | |
| 129 | // This will result in memory allocation if the value consists of multiple |
| 130 | // fragments. |
dschinazi | b2b2615 | 2020-07-01 10:17:25 -0700 | [diff] [blame] | 131 | const_reference operator*() const { |
| 132 | #if SPDY_HEADER_DEBUG |
| 133 | CHECK(!dereference_forbidden_); |
| 134 | #endif // SPDY_HEADER_DEBUG |
| 135 | return it_->second.as_pair(); |
| 136 | } |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 137 | |
| 138 | const_pointer operator->() const { return &(this->operator*()); } |
| 139 | bool operator==(const iterator& it) const { return it_ == it.it_; } |
| 140 | bool operator!=(const iterator& it) const { return !(*this == it); } |
| 141 | |
| 142 | iterator& operator++() { |
| 143 | it_++; |
| 144 | return *this; |
| 145 | } |
| 146 | |
| 147 | iterator operator++(int) { |
| 148 | auto ret = *this; |
| 149 | this->operator++(); |
| 150 | return ret; |
| 151 | } |
| 152 | |
dschinazi | b2b2615 | 2020-07-01 10:17:25 -0700 | [diff] [blame] | 153 | #if SPDY_HEADER_DEBUG |
| 154 | void forbid_dereference() { dereference_forbidden_ = true; } |
| 155 | #endif // SPDY_HEADER_DEBUG |
| 156 | |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 157 | private: |
| 158 | MapType::const_iterator it_; |
dschinazi | b2b2615 | 2020-07-01 10:17:25 -0700 | [diff] [blame] | 159 | #if SPDY_HEADER_DEBUG |
| 160 | bool dereference_forbidden_ = false; |
| 161 | #endif // SPDY_HEADER_DEBUG |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 162 | }; |
| 163 | typedef iterator const_iterator; |
| 164 | |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 165 | SpdyHeaderBlock(); |
| 166 | SpdyHeaderBlock(const SpdyHeaderBlock& other) = delete; |
| 167 | SpdyHeaderBlock(SpdyHeaderBlock&& other); |
| 168 | ~SpdyHeaderBlock(); |
| 169 | |
| 170 | SpdyHeaderBlock& operator=(const SpdyHeaderBlock& other) = delete; |
| 171 | SpdyHeaderBlock& operator=(SpdyHeaderBlock&& other); |
| 172 | SpdyHeaderBlock Clone() const; |
| 173 | |
| 174 | bool operator==(const SpdyHeaderBlock& other) const; |
| 175 | bool operator!=(const SpdyHeaderBlock& other) const; |
| 176 | |
| 177 | // Provides a human readable multi-line representation of the stored header |
| 178 | // keys and values. |
bnc | 4471291 | 2019-08-15 18:58:14 -0700 | [diff] [blame] | 179 | std::string DebugString() const; |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 180 | |
dschinazi | b2b2615 | 2020-07-01 10:17:25 -0700 | [diff] [blame] | 181 | iterator begin() { return wrap_iterator(map_.begin()); } |
| 182 | iterator end() { return wrap_iterator(map_.end()); } |
| 183 | const_iterator begin() const { return wrap_const_iterator(map_.begin()); } |
| 184 | const_iterator end() const { return wrap_const_iterator(map_.end()); } |
QUICHE team | 8e3bb9d | 2019-12-06 16:03:22 -0800 | [diff] [blame] | 185 | bool empty() const { return map_.empty(); } |
| 186 | size_t size() const { return map_.size(); } |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 187 | iterator find(quiche::QuicheStringPiece key) { |
dschinazi | b2b2615 | 2020-07-01 10:17:25 -0700 | [diff] [blame] | 188 | return wrap_iterator(map_.find(key)); |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 189 | } |
| 190 | const_iterator find(quiche::QuicheStringPiece key) const { |
dschinazi | b2b2615 | 2020-07-01 10:17:25 -0700 | [diff] [blame] | 191 | return wrap_const_iterator(map_.find(key)); |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 192 | } |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 193 | void erase(quiche::QuicheStringPiece key); |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 194 | |
| 195 | // Clears both our MapType member and the memory used to hold headers. |
| 196 | void clear(); |
| 197 | |
| 198 | // The next few methods copy data into our backing storage. |
| 199 | |
| 200 | // If key already exists in the block, replaces the value of that key. Else |
| 201 | // adds a new header to the end of the block. |
| 202 | void insert(const value_type& value); |
| 203 | |
| 204 | // If a header with the key is already present, then append the value to the |
| 205 | // existing header value, NUL ("\0") separated unless the key is cookie, in |
| 206 | // which case the separator is "; ". |
| 207 | // If there is no such key, a new header with the key and value is added. |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 208 | void AppendValueOrAddHeader(const quiche::QuicheStringPiece key, |
| 209 | const quiche::QuicheStringPiece value); |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 210 | |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 211 | // This object provides automatic conversions that allow SpdyHeaderBlock to be |
bnc | 4471291 | 2019-08-15 18:58:14 -0700 | [diff] [blame] | 212 | // nearly a drop-in replacement for |
| 213 | // SpdyLinkedHashMap<std::string, std::string>. |
QUICHE team | 6b29700 | 2019-12-09 09:37:56 -0800 | [diff] [blame] | 214 | // It reads data from or writes data to a SpdyHeaderStorage. |
bnc | 45ccf4b | 2020-01-21 19:05:27 -0800 | [diff] [blame] | 215 | class QUICHE_EXPORT_PRIVATE ValueProxy { |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 216 | public: |
| 217 | ~ValueProxy(); |
| 218 | |
| 219 | // Moves are allowed. |
| 220 | ValueProxy(ValueProxy&& other); |
| 221 | ValueProxy& operator=(ValueProxy&& other); |
| 222 | |
| 223 | // Copies are not. |
| 224 | ValueProxy(const ValueProxy& other) = delete; |
| 225 | ValueProxy& operator=(const ValueProxy& other) = delete; |
| 226 | |
| 227 | // Assignment modifies the underlying SpdyHeaderBlock. |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 228 | ValueProxy& operator=(quiche::QuicheStringPiece value); |
QUICHE team | 3f57c75 | 2019-12-16 14:09:53 -0800 | [diff] [blame] | 229 | |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 230 | // Provides easy comparison against QuicheStringPiece. |
| 231 | bool operator==(quiche::QuicheStringPiece value) const; |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 232 | |
bnc | 4471291 | 2019-08-15 18:58:14 -0700 | [diff] [blame] | 233 | std::string as_string() const; |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 234 | |
| 235 | private: |
| 236 | friend class SpdyHeaderBlock; |
| 237 | friend class test::ValueProxyPeer; |
| 238 | |
QUICHE team | 8e3bb9d | 2019-12-06 16:03:22 -0800 | [diff] [blame] | 239 | ValueProxy(SpdyHeaderBlock* block, |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 240 | SpdyHeaderBlock::MapType::iterator lookup_result, |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 241 | const quiche::QuicheStringPiece key, |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 242 | size_t* spdy_header_block_value_size); |
| 243 | |
QUICHE team | 8e3bb9d | 2019-12-06 16:03:22 -0800 | [diff] [blame] | 244 | SpdyHeaderBlock* block_; |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 245 | SpdyHeaderBlock::MapType::iterator lookup_result_; |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 246 | quiche::QuicheStringPiece key_; |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 247 | size_t* spdy_header_block_value_size_; |
| 248 | bool valid_; |
| 249 | }; |
| 250 | |
QUICHE team | 8e3bb9d | 2019-12-06 16:03:22 -0800 | [diff] [blame] | 251 | // Allows either lookup or mutation of the value associated with a key. |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 252 | SPDY_MUST_USE_RESULT ValueProxy |
| 253 | operator[](const quiche::QuicheStringPiece key); |
QUICHE team | 8e3bb9d | 2019-12-06 16:03:22 -0800 | [diff] [blame] | 254 | |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 255 | // Returns the estimate of dynamically allocated memory in bytes. |
| 256 | size_t EstimateMemoryUsage() const; |
| 257 | |
| 258 | size_t TotalBytesUsed() const { return key_size_ + value_size_; } |
| 259 | |
| 260 | private: |
| 261 | friend class test::SpdyHeaderBlockPeer; |
| 262 | |
dschinazi | b2b2615 | 2020-07-01 10:17:25 -0700 | [diff] [blame] | 263 | inline iterator wrap_iterator(MapType::const_iterator inner_iterator) const { |
| 264 | #if SPDY_HEADER_DEBUG |
| 265 | iterator outer_iterator(inner_iterator); |
| 266 | if (inner_iterator == map_.end()) { |
| 267 | outer_iterator.forbid_dereference(); |
| 268 | } |
| 269 | return outer_iterator; |
| 270 | #else // SPDY_HEADER_DEBUG |
| 271 | return iterator(inner_iterator); |
| 272 | #endif // SPDY_HEADER_DEBUG |
| 273 | } |
| 274 | |
| 275 | inline const_iterator wrap_const_iterator( |
| 276 | MapType::const_iterator inner_iterator) const { |
| 277 | #if SPDY_HEADER_DEBUG |
| 278 | const_iterator outer_iterator(inner_iterator); |
| 279 | if (inner_iterator == map_.end()) { |
| 280 | outer_iterator.forbid_dereference(); |
| 281 | } |
| 282 | return outer_iterator; |
| 283 | #else // SPDY_HEADER_DEBUG |
| 284 | return iterator(inner_iterator); |
| 285 | #endif // SPDY_HEADER_DEBUG |
| 286 | } |
| 287 | |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 288 | void AppendHeader(const quiche::QuicheStringPiece key, |
| 289 | const quiche::QuicheStringPiece value); |
| 290 | quiche::QuicheStringPiece WriteKey(const quiche::QuicheStringPiece key); |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 291 | size_t bytes_allocated() const; |
| 292 | |
bnc | 7f82d04 | 2020-01-03 12:18:53 -0800 | [diff] [blame] | 293 | // QuicheStringPieces held by |map_| point to memory owned by |storage_|. |
QUICHE team | 8e3bb9d | 2019-12-06 16:03:22 -0800 | [diff] [blame] | 294 | MapType map_; |
QUICHE team | 0b74550 | 2019-12-10 11:02:08 -0800 | [diff] [blame] | 295 | SpdyHeaderStorage storage_; |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 296 | |
| 297 | size_t key_size_ = 0; |
| 298 | size_t value_size_ = 0; |
| 299 | }; |
| 300 | |
QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame] | 301 | } // namespace spdy |
| 302 | |
| 303 | #endif // QUICHE_SPDY_CORE_SPDY_HEADER_BLOCK_H_ |