| 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 a2094bf3b2d7c6d2df5fce7b3c6384596b635734..98bbe909be9cbe68ee28b08a636ee1c56091aacb 100644
|
| --- a/third_party/WebKit/Source/platform/network/HTTPParsers.h
|
| +++ b/third_party/WebKit/Source/platform/network/HTTPParsers.h
|
| @@ -88,6 +88,17 @@ struct CacheControlHeader {
|
| maxAge(0.0) {}
|
| };
|
|
|
| +struct ServerTimingHeader {
|
| + String metric;
|
| + double duration;
|
| + String description;
|
| +
|
| + ServerTimingHeader(String metric, double duration, String description)
|
| + : metric(metric), duration(duration), description(description) {}
|
| +};
|
| +
|
| +using ServerTimingHeaderVector = Vector<std::unique_ptr<ServerTimingHeader>>;
|
| +
|
| PLATFORM_EXPORT ContentDispositionType getContentDispositionType(const String&);
|
| PLATFORM_EXPORT bool isValidHTTPHeaderValue(const String&);
|
| PLATFORM_EXPORT bool isValidHTTPFieldContentRFC7230(const String&);
|
| @@ -169,6 +180,11 @@ PLATFORM_EXPORT bool parseContentRangeHeaderFor206(const String& contentRange,
|
| int64_t* lastBytePosition,
|
| int64_t* instanceLength);
|
|
|
| +PLATFORM_EXPORT std::unique_ptr<ServerTimingHeaderVector>
|
| +parseServerTimingHeader(const String&);
|
| +
|
| +PLATFORM_EXPORT String checkDoubleQuotedString(const String&);
|
| +
|
| } // namespace blink
|
|
|
| #endif
|
|
|