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 "sky/engine/config.h" | |
6 #include "sky/engine/core/fetch/FetchUtils.h" | 5 #include "sky/engine/core/fetch/FetchUtils.h" |
7 | 6 |
8 #include "sky/engine/platform/network/HTTPHeaderMap.h" | 7 #include "sky/engine/platform/network/HTTPHeaderMap.h" |
9 #include "sky/engine/platform/network/HTTPParsers.h" | 8 #include "sky/engine/platform/network/HTTPParsers.h" |
10 #include "sky/engine/wtf/HashSet.h" | 9 #include "sky/engine/wtf/HashSet.h" |
11 #include "sky/engine/wtf/Threading.h" | 10 #include "sky/engine/wtf/Threading.h" |
12 #include "sky/engine/wtf/text/AtomicString.h" | 11 #include "sky/engine/wtf/text/AtomicString.h" |
13 #include "sky/engine/wtf/text/WTFString.h" | 12 #include "sky/engine/wtf/text/WTFString.h" |
14 | 13 |
15 namespace blink { | 14 namespace blink { |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 HTTPHeaderMap::const_iterator end = headerMap.end(); | 159 HTTPHeaderMap::const_iterator end = headerMap.end(); |
161 for (HTTPHeaderMap::const_iterator it = headerMap.begin(); it != end; ++it)
{ | 160 for (HTTPHeaderMap::const_iterator it = headerMap.begin(); it != end; ++it)
{ |
162 if (!isSimpleHeader(it->key, it->value) && !isForbiddenHeaderName(it->ke
y)) | 161 if (!isSimpleHeader(it->key, it->value) && !isForbiddenHeaderName(it->ke
y)) |
163 return false; | 162 return false; |
164 } | 163 } |
165 | 164 |
166 return true; | 165 return true; |
167 } | 166 } |
168 | 167 |
169 } // namespace blink | 168 } // namespace blink |
OLD | NEW |