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

Side by Side Diff: third_party/WebKit/Source/platform/network/HTTPParsers.h

Issue 2962113002: Updates to Server-Timing in accordance with with spec changes (Closed)
Patch Set: fix web-platform-tests Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 2 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * Copyright (C) 2011 Apple Inc. All Rights Reserved. 4 * Copyright (C) 2011 Apple Inc. All Rights Reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 CacheControlHeader() 78 CacheControlHeader()
79 : parsed(false), 79 : parsed(false),
80 contains_no_cache(false), 80 contains_no_cache(false),
81 contains_no_store(false), 81 contains_no_store(false),
82 contains_must_revalidate(false), 82 contains_must_revalidate(false),
83 max_age(0.0) {} 83 max_age(0.0) {}
84 }; 84 };
85 85
86 struct ServerTimingHeader { 86 struct ServerTimingHeader {
87 String metric; 87 String metric;
88 double duration; 88 double value;
89 String description; 89 String description;
90 90
91 ServerTimingHeader(String metric, double duration, String description) 91 ServerTimingHeader(String metric, double value, String description)
92 : metric(metric), duration(duration), description(description) {} 92 : metric(metric), value(value), description(description) {}
93 }; 93 };
94 94
95 using ServerTimingHeaderVector = Vector<std::unique_ptr<ServerTimingHeader>>; 95 using ServerTimingHeaderVector = Vector<std::unique_ptr<ServerTimingHeader>>;
96 96
97 PLATFORM_EXPORT bool IsContentDispositionAttachment(const String&); 97 PLATFORM_EXPORT bool IsContentDispositionAttachment(const String&);
98 PLATFORM_EXPORT bool IsValidHTTPHeaderValue(const String&); 98 PLATFORM_EXPORT bool IsValidHTTPHeaderValue(const String&);
99 // Checks whether the given string conforms to the |token| ABNF production 99 // Checks whether the given string conforms to the |token| ABNF production
100 // defined in the RFC 7230 or not. 100 // defined in the RFC 7230 or not.
101 // 101 //
102 // The ABNF is for validating octets, but this method takes a String instance 102 // The ABNF is for validating octets, but this method takes a String instance
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 int64_t* instance_length); 183 int64_t* instance_length);
184 184
185 PLATFORM_EXPORT std::unique_ptr<ServerTimingHeaderVector> 185 PLATFORM_EXPORT std::unique_ptr<ServerTimingHeaderVector>
186 ParseServerTimingHeader(const String&); 186 ParseServerTimingHeader(const String&);
187 187
188 using Mode = blink::ParsedContentType::Mode; 188 using Mode = blink::ParsedContentType::Mode;
189 189
190 } // namespace blink 190 } // namespace blink
191 191
192 #endif 192 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698