| 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 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 869 int maxParseDepth) { | 869 int maxParseDepth) { |
| 870 StringBuilder sb; | 870 StringBuilder sb; |
| 871 sb.append("["); | 871 sb.append("["); |
| 872 sb.append(header); | 872 sb.append(header); |
| 873 sb.append("]"); | 873 sb.append("]"); |
| 874 std::unique_ptr<JSONValue> headerValue = | 874 std::unique_ptr<JSONValue> headerValue = |
| 875 parseJSON(sb.toString(), maxParseDepth); | 875 parseJSON(sb.toString(), maxParseDepth); |
| 876 return JSONArray::from(std::move(headerValue)); | 876 return JSONArray::from(std::move(headerValue)); |
| 877 } | 877 } |
| 878 | 878 |
| 879 bool parseContentRangeHeaderFor206(const String& contentRange, |
| 880 int64_t* firstBytePosition, |
| 881 int64_t* lastBytePosition, |
| 882 int64_t* instanceLength) { |
| 883 return net::HttpUtil::ParseContentRangeHeaderFor206( |
| 884 StringUTF8Adaptor(contentRange).asStringPiece(), firstBytePosition, |
| 885 lastBytePosition, instanceLength); |
| 886 } |
| 887 |
| 879 } // namespace blink | 888 } // namespace blink |
| OLD | NEW |