Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Unified Diff: third_party/WebKit/Source/platform/network/HTTPParsers.h

Issue 2799093004: Enable ServerTiming support
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698