Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: sky/engine/core/fetch/FetchUtils.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/fetch/FetchUtils.h ('k') | sky/engine/core/fetch/FontResource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "config.h" 5 #include "sky/engine/config.h"
6 #include "core/fetch/FetchUtils.h" 6 #include "sky/engine/core/fetch/FetchUtils.h"
7 7
8 #include "platform/network/HTTPHeaderMap.h" 8 #include "sky/engine/platform/network/HTTPHeaderMap.h"
9 #include "platform/network/HTTPParsers.h" 9 #include "sky/engine/platform/network/HTTPParsers.h"
10 #include "wtf/HashSet.h" 10 #include "sky/engine/wtf/HashSet.h"
11 #include "wtf/Threading.h" 11 #include "sky/engine/wtf/Threading.h"
12 #include "wtf/text/AtomicString.h" 12 #include "sky/engine/wtf/text/AtomicString.h"
13 #include "wtf/text/WTFString.h" 13 #include "sky/engine/wtf/text/WTFString.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 namespace { 17 namespace {
18 18
19 class ForbiddenHeaderNames { 19 class ForbiddenHeaderNames {
20 WTF_MAKE_NONCOPYABLE(ForbiddenHeaderNames); WTF_MAKE_FAST_ALLOCATED; 20 WTF_MAKE_NONCOPYABLE(ForbiddenHeaderNames); WTF_MAKE_FAST_ALLOCATED;
21 public: 21 public:
22 bool has(const String& name) const 22 bool has(const String& name) const
23 { 23 {
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 HTTPHeaderMap::const_iterator end = headerMap.end(); 160 HTTPHeaderMap::const_iterator end = headerMap.end();
161 for (HTTPHeaderMap::const_iterator it = headerMap.begin(); it != end; ++it) { 161 for (HTTPHeaderMap::const_iterator it = headerMap.begin(); it != end; ++it) {
162 if (!isSimpleHeader(it->key, it->value) && !isForbiddenHeaderName(it->ke y)) 162 if (!isSimpleHeader(it->key, it->value) && !isForbiddenHeaderName(it->ke y))
163 return false; 163 return false;
164 } 164 }
165 165
166 return true; 166 return true;
167 } 167 }
168 168
169 } // namespace blink 169 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/fetch/FetchUtils.h ('k') | sky/engine/core/fetch/FontResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698