| Index: net/quic/core/spdy_utils.h
|
| diff --git a/net/quic/core/spdy_utils.h b/net/quic/core/spdy_utils.h
|
| index 4f3f62ba38be16859187b805af88318b552f54f5..724136af20e8216c40eebc1cf8644165c3d8e13f 100644
|
| --- a/net/quic/core/spdy_utils.h
|
| +++ b/net/quic/core/spdy_utils.h
|
| @@ -22,40 +22,18 @@ class QUIC_EXPORT_PRIVATE SpdyUtils {
|
| static std::string SerializeUncompressedHeaders(
|
| const SpdyHeaderBlock& headers);
|
|
|
| - // Parses |data| as a string containing serialized HTTP/2 HEADERS frame,
|
| - // populating |headers| with the key->value pairs found.
|
| - // |content_length| will be populated with the value of the content-length
|
| - // header if one or more are present.
|
| - // Returns true on success, false if parsing fails, or invalid keys are found.
|
| - static bool ParseHeaders(const char* data,
|
| - uint32_t data_len,
|
| - int64_t* content_length,
|
| - SpdyHeaderBlock* headers);
|
| -
|
| // Populate |content length| with the value of the content-length header.
|
| // Returns true on success, false if parsing fails or content-length header is
|
| // missing.
|
| static bool ExtractContentLengthFromHeaders(int64_t* content_length,
|
| SpdyHeaderBlock* headers);
|
|
|
| - // Parses |data| as a string containing serialized HTTP/2 HEADERS frame,
|
| - // populating |trailers| with the key->value pairs found.
|
| - // The final offset header will be excluded from |trailers|, and instead the
|
| - // value will be copied to |final_byte_offset|.
|
| - // Returns true on success, false if parsing fails, or invalid keys are found.
|
| - static bool ParseTrailers(const char* data,
|
| - uint32_t data_len,
|
| - size_t* final_byte_offset,
|
| - SpdyHeaderBlock* trailers);
|
| -
|
| - // Copies a list of headers to a SpdyHeaderBlock. Performs similar validation
|
| - // to SpdyFramer::ParseHeaderBlockInBuffer and ParseHeaders, above.
|
| + // Copies a list of headers to a SpdyHeaderBlock.
|
| static bool CopyAndValidateHeaders(const QuicHeaderList& header_list,
|
| int64_t* content_length,
|
| SpdyHeaderBlock* headers);
|
|
|
| - // Copies a list of headers to a SpdyHeaderBlock. Performs similar validation
|
| - // to SpdyFramer::ParseHeaderBlockInBuffer and ParseTrailers, above.
|
| + // Copies a list of headers to a SpdyHeaderBlock.
|
| static bool CopyAndValidateTrailers(const QuicHeaderList& header_list,
|
| size_t* final_byte_offset,
|
| SpdyHeaderBlock* trailers);
|
|
|