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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/FetchHeaderList.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months 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
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 "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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/FetchHeaderList.h ('k') | third_party/WebKit/Source/modules/fetch/FetchManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698