| 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 10 matching lines...) Expand all Loading... |
| 21 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | 21 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 22 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY | 22 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY |
| 23 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 23 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 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 SKY_ENGINE_PLATFORM_NETWORK_HTTPPARSERS_H_ |
| 32 #define HTTPParsers_h | 32 #define SKY_ENGINE_PLATFORM_NETWORK_HTTPPARSERS_H_ |
| 33 | 33 |
| 34 #include "sky/engine/platform/PlatformExport.h" | 34 #include "sky/engine/platform/PlatformExport.h" |
| 35 #include "sky/engine/wtf/Forward.h" | 35 #include "sky/engine/wtf/Forward.h" |
| 36 #include "sky/engine/wtf/Vector.h" | 36 #include "sky/engine/wtf/Vector.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 typedef enum { | 40 typedef enum { |
| 41 ContentDispositionNone, | 41 ContentDispositionNone, |
| 42 ContentDispositionInline, | 42 ContentDispositionInline, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 PLATFORM_EXPORT ContentTypeOptionsDisposition parseContentTypeOptionsHeader(cons
t String& header); | 93 PLATFORM_EXPORT ContentTypeOptionsDisposition parseContentTypeOptionsHeader(cons
t String& header); |
| 94 | 94 |
| 95 // Parsing Complete HTTP Messages. | 95 // Parsing Complete HTTP Messages. |
| 96 enum HTTPVersion { Unknown, HTTP_1_0, HTTP_1_1 }; | 96 enum HTTPVersion { Unknown, HTTP_1_0, HTTP_1_1 }; |
| 97 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&); |
| 98 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); |
| 99 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); |
| 100 | 100 |
| 101 } | 101 } |
| 102 | 102 |
| 103 #endif | 103 #endif // SKY_ENGINE_PLATFORM_NETWORK_HTTPPARSERS_H_ |
| OLD | NEW |