| 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 "platform/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 < header_list_.size(); ++i) | 20 for (size_t i = 0; i < header_list_.size(); ++i) |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 return IsValidHTTPToken(name); | 162 return IsValidHTTPToken(name); |
| 163 } | 163 } |
| 164 | 164 |
| 165 bool FetchHeaderList::IsValidHeaderValue(const String& value) { | 165 bool FetchHeaderList::IsValidHeaderValue(const String& value) { |
| 166 // "A value is a byte sequence that matches the field-value token production | 166 // "A value is a byte sequence that matches the field-value token production |
| 167 // and contains no 0x0A or 0x0D bytes." | 167 // and contains no 0x0A or 0x0D bytes." |
| 168 return IsValidHTTPHeaderValue(value); | 168 return IsValidHTTPHeaderValue(value); |
| 169 } | 169 } |
| 170 | 170 |
| 171 } // namespace blink | 171 } // namespace blink |
| OLD | NEW |