| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/fetch/FetchHeaderList.h" | 5 #include "modules/fetch/FetchHeaderList.h" |
| 6 | 6 |
| 7 #include <algorithm> |
| 7 #include "platform/loader/fetch/FetchUtils.h" | 8 #include "platform/loader/fetch/FetchUtils.h" |
| 8 #include "platform/network/HTTPParsers.h" | 9 #include "platform/network/HTTPParsers.h" |
| 9 #include "wtf/PtrUtil.h" | 10 #include "wtf/PtrUtil.h" |
| 10 #include <algorithm> | |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 FetchHeaderList* FetchHeaderList::create() { | 14 FetchHeaderList* FetchHeaderList::create() { |
| 15 return new FetchHeaderList(); | 15 return new FetchHeaderList(); |
| 16 } | 16 } |
| 17 | 17 |
| 18 FetchHeaderList* FetchHeaderList::clone() const { | 18 FetchHeaderList* FetchHeaderList::clone() const { |
| 19 FetchHeaderList* list = create(); | 19 FetchHeaderList* list = create(); |
| 20 for (size_t i = 0; i < m_headerList.size(); ++i) | 20 for (size_t i = 0; i < m_headerList.size(); ++i) |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 return isValidHTTPToken(name); | 161 return isValidHTTPToken(name); |
| 162 } | 162 } |
| 163 | 163 |
| 164 bool FetchHeaderList::isValidHeaderValue(const String& value) { | 164 bool FetchHeaderList::isValidHeaderValue(const String& value) { |
| 165 // "A value is a byte sequence that matches the field-value token production | 165 // "A value is a byte sequence that matches the field-value token production |
| 166 // and contains no 0x0A or 0x0D bytes." | 166 // and contains no 0x0A or 0x0D bytes." |
| 167 return isValidHTTPHeaderValue(value); | 167 return isValidHTTPHeaderValue(value); |
| 168 } | 168 } |
| 169 | 169 |
| 170 } // namespace blink | 170 } // namespace blink |
| OLD | NEW |