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

Side by Side Diff: Source/modules/serviceworkers/FetchHeaderList.cpp

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 "config.h"
6 #include "FetchHeaderList.h" 6 #include "FetchHeaderList.h"
7 7
8 #include "core/fetch/CrossOriginAccessControl.h" 8 #include "core/fetch/CrossOriginAccessControl.h"
9 #include "core/xml/XMLHttpRequest.h" 9 #include "core/xml/XMLHttpRequest.h"
10 #include "platform/network/HTTPParsers.h" 10 #include "platform/network/HTTPParsers.h"
11 #include "wtf/PassOwnPtr.h" 11 #include "wtf/PassOwnPtr.h"
12 12
13 namespace WebCore { 13 namespace blink {
14 14
15 PassRefPtrWillBeRawPtr<FetchHeaderList> FetchHeaderList::create() 15 PassRefPtrWillBeRawPtr<FetchHeaderList> FetchHeaderList::create()
16 { 16 {
17 return adoptRefWillBeNoop(new FetchHeaderList()); 17 return adoptRefWillBeNoop(new FetchHeaderList());
18 } 18 }
19 19
20 PassRefPtrWillBeRawPtr<FetchHeaderList> FetchHeaderList::createCopy() 20 PassRefPtrWillBeRawPtr<FetchHeaderList> FetchHeaderList::createCopy()
21 { 21 {
22 RefPtrWillBeRawPtr<FetchHeaderList> list(create()); 22 RefPtrWillBeRawPtr<FetchHeaderList> list(create());
23 for (size_t i = 0; i < m_headerList.size(); ++i) 23 for (size_t i = 0; i < m_headerList.size(); ++i)
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 return !XMLHttpRequest::isAllowedHTTPHeader(name) || equalIgnoringCase(name, "DNT"); 170 return !XMLHttpRequest::isAllowedHTTPHeader(name) || equalIgnoringCase(name, "DNT");
171 } 171 }
172 172
173 bool FetchHeaderList::isForbiddenResponseHeaderName(const String& name) 173 bool FetchHeaderList::isForbiddenResponseHeaderName(const String& name)
174 { 174 {
175 // "A forbidden response header name is a header name that is one of: 175 // "A forbidden response header name is a header name that is one of:
176 // `Set-Cookie`, `Set-Cookie2`" 176 // `Set-Cookie`, `Set-Cookie2`"
177 return equalIgnoringCase(name, "set-cookie") || equalIgnoringCase(name, "set -cookie2"); 177 return equalIgnoringCase(name, "set-cookie") || equalIgnoringCase(name, "set -cookie2");
178 } 178 }
179 179
180 } // namespace WebCore 180 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/FetchHeaderList.h ('k') | Source/modules/serviceworkers/FetchManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698