| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 , containsNoStore(false) | 71 , containsNoStore(false) |
| 72 , containsMustRevalidate(false) | 72 , containsMustRevalidate(false) |
| 73 , maxAge(0.0) | 73 , maxAge(0.0) |
| 74 { | 74 { |
| 75 } | 75 } |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 PLATFORM_EXPORT ContentDispositionType contentDispositionType(const String&); | 78 PLATFORM_EXPORT ContentDispositionType contentDispositionType(const String&); |
| 79 PLATFORM_EXPORT bool isValidHTTPHeaderValue(const String&); | 79 PLATFORM_EXPORT bool isValidHTTPHeaderValue(const String&); |
| 80 PLATFORM_EXPORT bool isValidHTTPToken(const String&); | 80 PLATFORM_EXPORT bool isValidHTTPToken(const String&); |
| 81 PLATFORM_EXPORT bool parseHTTPRefresh(const String& refresh, bool fromHttpEquivM
eta, double& delay, String& url); | |
| 82 PLATFORM_EXPORT double parseDate(const String&); | 81 PLATFORM_EXPORT double parseDate(const String&); |
| 83 PLATFORM_EXPORT String filenameFromHTTPContentDisposition(const String&); | 82 PLATFORM_EXPORT String filenameFromHTTPContentDisposition(const String&); |
| 84 PLATFORM_EXPORT AtomicString extractMIMETypeFromMediaType(const AtomicString&); | 83 PLATFORM_EXPORT AtomicString extractMIMETypeFromMediaType(const AtomicString&); |
| 85 PLATFORM_EXPORT String extractCharsetFromMediaType(const String&); | 84 PLATFORM_EXPORT String extractCharsetFromMediaType(const String&); |
| 86 PLATFORM_EXPORT void findCharsetInMediaType(const String& mediaType, unsigned& c
harsetPos, unsigned& charsetLen, unsigned start = 0); | 85 PLATFORM_EXPORT void findCharsetInMediaType(const String& mediaType, unsigned& c
harsetPos, unsigned& charsetLen, unsigned start = 0); |
| 87 PLATFORM_EXPORT ReflectedXSSDisposition parseXSSProtectionHeader(const String& h
eader, String& failureReason, unsigned& failurePosition, String& reportURL); | 86 PLATFORM_EXPORT ReflectedXSSDisposition parseXSSProtectionHeader(const String& h
eader, String& failureReason, unsigned& failurePosition, String& reportURL); |
| 88 PLATFORM_EXPORT String extractReasonPhraseFromHTTPStatusLine(const String&); | 87 PLATFORM_EXPORT String extractReasonPhraseFromHTTPStatusLine(const String&); |
| 89 PLATFORM_EXPORT CacheControlHeader parseCacheControlDirectives(const AtomicStrin
g& cacheControlHeader, const AtomicString& pragmaHeader); | 88 PLATFORM_EXPORT CacheControlHeader parseCacheControlDirectives(const AtomicStrin
g& cacheControlHeader, const AtomicString& pragmaHeader); |
| 90 | 89 |
| 91 // -1 could be set to one of the return parameters to indicate the value is not
specified. | 90 // -1 could be set to one of the return parameters to indicate the value is not
specified. |
| 92 PLATFORM_EXPORT bool parseRange(const String&, long long& rangeOffset, long long
& rangeEnd, long long& rangeSuffixLength); | 91 PLATFORM_EXPORT bool parseRange(const String&, long long& rangeOffset, long long
& rangeEnd, long long& rangeSuffixLength); |
| 93 | 92 |
| 94 PLATFORM_EXPORT ContentTypeOptionsDisposition parseContentTypeOptionsHeader(cons
t String& header); | 93 PLATFORM_EXPORT ContentTypeOptionsDisposition parseContentTypeOptionsHeader(cons
t String& header); |
| 95 | 94 |
| 96 // Parsing Complete HTTP Messages. | 95 // Parsing Complete HTTP Messages. |
| 97 enum HTTPVersion { Unknown, HTTP_1_0, HTTP_1_1 }; | 96 enum HTTPVersion { Unknown, HTTP_1_0, HTTP_1_1 }; |
| 98 PLATFORM_EXPORT size_t parseHTTPRequestLine(const char* data, size_t length, Str
ing& failureReason, String& method, String& url, HTTPVersion&); | 97 PLATFORM_EXPORT size_t parseHTTPRequestLine(const char* data, size_t length, Str
ing& failureReason, String& method, String& url, HTTPVersion&); |
| 99 PLATFORM_EXPORT size_t parseHTTPHeader(const char* data, size_t length, String&
failureReason, AtomicString& nameStr, AtomicString& valueStr); | 98 PLATFORM_EXPORT size_t parseHTTPHeader(const char* data, size_t length, String&
failureReason, AtomicString& nameStr, AtomicString& valueStr); |
| 100 PLATFORM_EXPORT size_t parseHTTPRequestBody(const char* data, size_t length, Vec
tor<unsigned char>& body); | 99 PLATFORM_EXPORT size_t parseHTTPRequestBody(const char* data, size_t length, Vec
tor<unsigned char>& body); |
| 101 | 100 |
| 102 } | 101 } |
| 103 | 102 |
| 104 #endif | 103 #endif |
| OLD | NEW |