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 c2d33f75da5192b3d59ff16c0263729e28b74d10..917c76214111b582d46c53f545a9a9473807602a 100644 |
--- a/third_party/WebKit/Source/platform/network/HTTPParsers.h |
+++ b/third_party/WebKit/Source/platform/network/HTTPParsers.h |
@@ -81,6 +81,17 @@ struct CacheControlHeader { |
max_age(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 bool IsContentDispositionAttachment(const String&); |
PLATFORM_EXPORT bool IsValidHTTPHeaderValue(const String&); |
PLATFORM_EXPORT bool IsValidHTTPFieldContentRFC7230(const String&); |
@@ -162,6 +173,11 @@ PLATFORM_EXPORT bool ParseContentRangeHeaderFor206(const String& content_range, |
int64_t* last_byte_position, |
int64_t* instance_length); |
+PLATFORM_EXPORT std::unique_ptr<ServerTimingHeaderVector> |
+ParseServerTimingHeader(const String&); |
+ |
+PLATFORM_EXPORT String CheckDoubleQuotedString(const String&); |
+ |
} // namespace blink |
#endif |