| 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 17 matching lines...) Expand all Loading... |
| 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 "wtf/Forward.h" | 35 #include "wtf/Forward.h" |
| 36 #include "wtf/Vector.h" | 36 #include "wtf/Vector.h" |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace blink { |
| 39 | 39 |
| 40 class HTTPHeaderMap; | 40 class HTTPHeaderMap; |
| 41 class ResourceResponseBase; | 41 class ResourceResponseBase; |
| 42 | 42 |
| 43 typedef enum { | 43 typedef enum { |
| 44 ContentDispositionNone, | 44 ContentDispositionNone, |
| 45 ContentDispositionInline, | 45 ContentDispositionInline, |
| 46 ContentDispositionAttachment, | 46 ContentDispositionAttachment, |
| 47 ContentDispositionOther | 47 ContentDispositionOther |
| 48 } ContentDispositionType; | 48 } ContentDispositionType; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 // Parsing Complete HTTP Messages. | 109 // Parsing Complete HTTP Messages. |
| 110 enum HTTPVersion { Unknown, HTTP_1_0, HTTP_1_1 }; | 110 enum HTTPVersion { Unknown, HTTP_1_0, HTTP_1_1 }; |
| 111 PLATFORM_EXPORT size_t parseHTTPRequestLine(const char* data, size_t length, Str
ing& failureReason, String& method, String& url, HTTPVersion&); | 111 PLATFORM_EXPORT size_t parseHTTPRequestLine(const char* data, size_t length, Str
ing& failureReason, String& method, String& url, HTTPVersion&); |
| 112 PLATFORM_EXPORT size_t parseHTTPHeader(const char* data, size_t length, String&
failureReason, AtomicString& nameStr, AtomicString& valueStr); | 112 PLATFORM_EXPORT size_t parseHTTPHeader(const char* data, size_t length, String&
failureReason, AtomicString& nameStr, AtomicString& valueStr); |
| 113 PLATFORM_EXPORT size_t parseHTTPRequestBody(const char* data, size_t length, Vec
tor<unsigned char>& body); | 113 PLATFORM_EXPORT size_t parseHTTPRequestBody(const char* data, size_t length, Vec
tor<unsigned char>& body); |
| 114 | 114 |
| 115 } | 115 } |
| 116 | 116 |
| 117 #endif | 117 #endif |
| OLD | NEW |