| Index: net/quic/spdy_utils.h
|
| diff --git a/net/quic/spdy_utils.h b/net/quic/spdy_utils.h
|
| index 28b48dbe5d900175f4bd85208f1a901fef2896b4..87fa0087a77964faabc8dae1230e7f047b2712a2 100644
|
| --- a/net/quic/spdy_utils.h
|
| +++ b/net/quic/spdy_utils.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef NET_QUIC_SPDY_UTILS_H_
|
| #define NET_QUIC_SPDY_UTILS_H_
|
|
|
| +#include <map>
|
| #include <string>
|
|
|
| #include "net/base/net_export.h"
|
| @@ -18,6 +19,16 @@ class NET_EXPORT_PRIVATE SpdyUtils {
|
| static std::string SerializeUncompressedHeaders(
|
| const SpdyHeaderBlock& headers);
|
|
|
| + // Parses |data| as a std::string containing serialized HTTP/2 HEADERS frame,
|
| + // populating |headers| with the key->value std: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 data_len,
|
| + int* content_length,
|
| + SpdyHeaderBlock* headers);
|
| +
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(SpdyUtils);
|
| };
|
|
|