| 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 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 cache_control_header.max_age = max_age; | 736 cache_control_header.max_age = max_age; |
| 737 } | 737 } |
| 738 } | 738 } |
| 739 } | 739 } |
| 740 | 740 |
| 741 if (!cache_control_header.contains_no_cache) { | 741 if (!cache_control_header.contains_no_cache) { |
| 742 // Handle Pragma: no-cache | 742 // Handle Pragma: no-cache |
| 743 // This is deprecated and equivalent to Cache-control: no-cache | 743 // This is deprecated and equivalent to Cache-control: no-cache |
| 744 // Don't bother tokenizing the value, it is not important | 744 // Don't bother tokenizing the value, it is not important |
| 745 cache_control_header.contains_no_cache = | 745 cache_control_header.contains_no_cache = |
| 746 pragma_value.Lower().Contains(kNoCacheDirective); | 746 pragma_value.DeprecatedLower().Contains(kNoCacheDirective); |
| 747 } | 747 } |
| 748 return cache_control_header; | 748 return cache_control_header; |
| 749 } | 749 } |
| 750 | 750 |
| 751 void ParseCommaDelimitedHeader(const String& header_value, | 751 void ParseCommaDelimitedHeader(const String& header_value, |
| 752 CommaDelimitedHeaderSet& header_set) { | 752 CommaDelimitedHeaderSet& header_set) { |
| 753 Vector<String> results; | 753 Vector<String> results; |
| 754 header_value.Split(",", results); | 754 header_value.Split(",", results); |
| 755 for (auto& value : results) | 755 for (auto& value : results) |
| 756 header_set.insert(value.StripWhiteSpace(IsWhitespace)); | 756 header_set.insert(value.StripWhiteSpace(IsWhitespace)); |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 868 bool ParseContentRangeHeaderFor206(const String& content_range, | 868 bool ParseContentRangeHeaderFor206(const String& content_range, |
| 869 int64_t* first_byte_position, | 869 int64_t* first_byte_position, |
| 870 int64_t* last_byte_position, | 870 int64_t* last_byte_position, |
| 871 int64_t* instance_length) { | 871 int64_t* instance_length) { |
| 872 return net::HttpUtil::ParseContentRangeHeaderFor206( | 872 return net::HttpUtil::ParseContentRangeHeaderFor206( |
| 873 StringUTF8Adaptor(content_range).AsStringPiece(), first_byte_position, | 873 StringUTF8Adaptor(content_range).AsStringPiece(), first_byte_position, |
| 874 last_byte_position, instance_length); | 874 last_byte_position, instance_length); |
| 875 } | 875 } |
| 876 | 876 |
| 877 } // namespace blink | 877 } // namespace blink |
| OLD | NEW |