| OLD | NEW |
| 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 14 matching lines...) Expand all Loading... |
| 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef HTTPParsers_h | 31 #ifndef HTTPParsers_h |
| 32 #define HTTPParsers_h | 32 #define HTTPParsers_h |
| 33 | 33 |
| 34 #include "platform/PlatformExport.h" | 34 #include "platform/PlatformExport.h" |
| 35 #include "platform/weborigin/ReferrerPolicy.h" |
| 35 #include "wtf/Allocator.h" | 36 #include "wtf/Allocator.h" |
| 36 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
| 37 #include "wtf/HashSet.h" | 38 #include "wtf/HashSet.h" |
| 38 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
| 39 #include "wtf/text/StringHash.h" | 40 #include "wtf/text/StringHash.h" |
| 40 | 41 |
| 41 namespace blink { | 42 namespace blink { |
| 42 | 43 |
| 43 class Suborigin; | 44 class Suborigin; |
| 44 | 45 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 PLATFORM_EXPORT CacheControlHeader parseCacheControlDirectives(const AtomicStrin
g& cacheControlHeader, const AtomicString& pragmaHeader); | 114 PLATFORM_EXPORT CacheControlHeader parseCacheControlDirectives(const AtomicStrin
g& cacheControlHeader, const AtomicString& pragmaHeader); |
| 114 PLATFORM_EXPORT void parseCommaDelimitedHeader(const String& headerValue, CommaD
elimitedHeaderSet&); | 115 PLATFORM_EXPORT void parseCommaDelimitedHeader(const String& headerValue, CommaD
elimitedHeaderSet&); |
| 115 // Returns true on success, otherwise false. The Suborigin argument must be a | 116 // Returns true on success, otherwise false. The Suborigin argument must be a |
| 116 // non-null return argument. |messages| is a list of messages based on any | 117 // non-null return argument. |messages| is a list of messages based on any |
| 117 // parse warnings or errors. Even if parseSuboriginHeader returns true, there | 118 // parse warnings or errors. Even if parseSuboriginHeader returns true, there |
| 118 // may be Strings in |messages|. | 119 // may be Strings in |messages|. |
| 119 PLATFORM_EXPORT bool parseSuboriginHeader(const String& header, Suborigin*, WTF:
:Vector<String>& messages); | 120 PLATFORM_EXPORT bool parseSuboriginHeader(const String& header, Suborigin*, WTF:
:Vector<String>& messages); |
| 120 | 121 |
| 121 PLATFORM_EXPORT ContentTypeOptionsDisposition parseContentTypeOptionsHeader(cons
t String& header); | 122 PLATFORM_EXPORT ContentTypeOptionsDisposition parseContentTypeOptionsHeader(cons
t String& header); |
| 122 | 123 |
| 124 PLATFORM_EXPORT ReferrerPolicy parseReferrerPolicyHeader(const String& header); |
| 125 |
| 123 } // namespace blink | 126 } // namespace blink |
| 124 | 127 |
| 125 #endif | 128 #endif |
| OLD | NEW |