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

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

Issue 2839683003: Server-Timing (Closed)
Patch Set: make those robots happy, attempt #2 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 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

Powered by Google App Engine
This is Rietveld 408576698