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

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

Issue 2799093004: Enable ServerTiming support
Patch Set: updates for Patch Set 7 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 023d7d772102d9165e052a5231d0ff6deb4810f2..f042dcfa6dc49438606154a4c1836ba14c8d31c7 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 {
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 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& 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
« no previous file with comments | « third_party/WebKit/Source/platform/network/HTTPNames.json5 ('k') | third_party/WebKit/Source/platform/network/HTTPParsers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698