| 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) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ | 4 * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ |
| 5 * Copyright (C) 2009 Google Inc. All rights reserved. | 5 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 6 * Copyright (C) 2011 Apple Inc. All Rights Reserved. | 6 * Copyright (C) 2011 Apple Inc. All Rights Reserved. |
| 7 * | 7 * |
| 8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
| 9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
| 10 * are met: | 10 * are met: |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 31 */ | 31 */ |
| 32 | 32 |
| 33 #include "platform/network/HTTPParsers.h" | 33 #include "platform/network/HTTPParsers.h" |
| 34 | 34 |
| 35 #include "net/http/http_response_headers.h" | 35 #include "net/http/http_response_headers.h" |
| 36 #include "net/http/http_util.h" | 36 #include "net/http/http_util.h" |
| 37 #include "platform/json/JSONParser.h" | 37 #include "platform/json/JSONParser.h" |
| 38 #include "platform/loader/fetch/ResourceResponse.h" | 38 #include "platform/loader/fetch/ResourceResponse.h" |
| 39 #include "platform/weborigin/Suborigin.h" | 39 #include "platform/weborigin/Suborigin.h" |
| 40 #include "platform/wtf/DateMath.h" |
| 41 #include "platform/wtf/MathExtras.h" |
| 42 #include "platform/wtf/text/CString.h" |
| 43 #include "platform/wtf/text/CharacterNames.h" |
| 44 #include "platform/wtf/text/ParsingUtilities.h" |
| 45 #include "platform/wtf/text/StringBuilder.h" |
| 46 #include "platform/wtf/text/StringUTF8Adaptor.h" |
| 47 #include "platform/wtf/text/WTFString.h" |
| 40 #include "public/platform/WebString.h" | 48 #include "public/platform/WebString.h" |
| 41 #include "wtf/DateMath.h" | |
| 42 #include "wtf/MathExtras.h" | |
| 43 #include "wtf/text/CString.h" | |
| 44 #include "wtf/text/CharacterNames.h" | |
| 45 #include "wtf/text/ParsingUtilities.h" | |
| 46 #include "wtf/text/StringBuilder.h" | |
| 47 #include "wtf/text/StringUTF8Adaptor.h" | |
| 48 #include "wtf/text/WTFString.h" | |
| 49 | 49 |
| 50 using namespace WTF; | 50 using namespace WTF; |
| 51 | 51 |
| 52 namespace blink { | 52 namespace blink { |
| 53 | 53 |
| 54 namespace { | 54 namespace { |
| 55 | 55 |
| 56 const Vector<AtomicString>& replaceHeaders() { | 56 const Vector<AtomicString>& replaceHeaders() { |
| 57 // The list of response headers that we do not copy from the original | 57 // The list of response headers that we do not copy from the original |
| 58 // response when generating a ResourceResponse for a MIME payload. | 58 // response when generating a ResourceResponse for a MIME payload. |
| (...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 865 bool parseContentRangeHeaderFor206(const String& contentRange, | 865 bool parseContentRangeHeaderFor206(const String& contentRange, |
| 866 int64_t* firstBytePosition, | 866 int64_t* firstBytePosition, |
| 867 int64_t* lastBytePosition, | 867 int64_t* lastBytePosition, |
| 868 int64_t* instanceLength) { | 868 int64_t* instanceLength) { |
| 869 return net::HttpUtil::ParseContentRangeHeaderFor206( | 869 return net::HttpUtil::ParseContentRangeHeaderFor206( |
| 870 StringUTF8Adaptor(contentRange).asStringPiece(), firstBytePosition, | 870 StringUTF8Adaptor(contentRange).asStringPiece(), firstBytePosition, |
| 871 lastBytePosition, instanceLength); | 871 lastBytePosition, instanceLength); |
| 872 } | 872 } |
| 873 | 873 |
| 874 } // namespace blink | 874 } // namespace blink |
| OLD | NEW |