Chromium Code Reviews| Index: third_party/WebKit/Source/platform/network/HTTPParsers.h |
| diff --git a/third_party/WebKit/Source/platform/network/HTTPParsers.h b/third_party/WebKit/Source/platform/network/HTTPParsers.h |
| index 6c84e4aca6979e1e91c5efe5c087231321c9afa9..6a622cd8ba9446fee841abd673a1896ca5089c15 100644 |
| --- a/third_party/WebKit/Source/platform/network/HTTPParsers.h |
| +++ b/third_party/WebKit/Source/platform/network/HTTPParsers.h |
| @@ -32,12 +32,15 @@ |
| #define HTTPParsers_h |
| #include "platform/PlatformExport.h" |
| +#include "platform/json/JSONValues.h" |
| #include "wtf/Allocator.h" |
| #include "wtf/Forward.h" |
| #include "wtf/HashSet.h" |
| #include "wtf/Vector.h" |
| #include "wtf/text/StringHash.h" |
| +#include <memory> |
| + |
| namespace blink { |
| class Suborigin; |
| @@ -157,6 +160,11 @@ PLATFORM_EXPORT bool parseMultipartHeadersFromBody(const char* bytes, |
| ResourceResponse*, |
| size_t* end); |
| +// Parses a header value containing JSON data, according to |
| +// https://tools.ietf.org/html/draft-ietf-httpbis-jfv-01 |
| +// Returns an empty unique_ptr if the header cannot be parsed as JSON. |
| +PLATFORM_EXPORT std::unique_ptr<JSONArray> parseJSONHeader( |
| + const String& header); |
|
dcheng
2016/11/03 05:54:43
Nit: newline after this
iclelland
2016/11/03 14:59:21
Thanks, done. (Really wish git cl format would han
|
| } // namespace blink |
| #endif |