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

Side by Side Diff: third_party/WebKit/Source/core/fetch/Resource.cpp

Issue 2508033004: Reduce unnecessary usage of TextCaseSensitivity::TextCaseInsensitive. (Closed)
Patch Set: Created 4 years, 1 month 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 /* 1 /*
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org)
4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org)
5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
7 rights reserved. 7 rights reserved.
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 static inline bool shouldUpdateHeaderAfterRevalidation( 86 static inline bool shouldUpdateHeaderAfterRevalidation(
87 const AtomicString& header) { 87 const AtomicString& header) {
88 for (size_t i = 0; i < WTF_ARRAY_LENGTH(headersToIgnoreAfterRevalidation); 88 for (size_t i = 0; i < WTF_ARRAY_LENGTH(headersToIgnoreAfterRevalidation);
89 i++) { 89 i++) {
90 if (equalIgnoringCase(header, headersToIgnoreAfterRevalidation[i])) 90 if (equalIgnoringCase(header, headersToIgnoreAfterRevalidation[i]))
91 return false; 91 return false;
92 } 92 }
93 for (size_t i = 0; 93 for (size_t i = 0;
94 i < WTF_ARRAY_LENGTH(headerPrefixesToIgnoreAfterRevalidation); i++) { 94 i < WTF_ARRAY_LENGTH(headerPrefixesToIgnoreAfterRevalidation); i++) {
95 if (header.startsWith(headerPrefixesToIgnoreAfterRevalidation[i], 95 if (header.startsWith(headerPrefixesToIgnoreAfterRevalidation[i],
96 TextCaseInsensitive)) 96 TextCaseASCIIInsensitive))
97 return false; 97 return false;
98 } 98 }
99 return true; 99 return true;
100 } 100 }
101 101
102 class Resource::CachedMetadataHandlerImpl : public CachedMetadataHandler { 102 class Resource::CachedMetadataHandlerImpl : public CachedMetadataHandler {
103 public: 103 public:
104 static Resource::CachedMetadataHandlerImpl* create(Resource* resource) { 104 static Resource::CachedMetadataHandlerImpl* create(Resource* resource) {
105 return new CachedMetadataHandlerImpl(resource); 105 return new CachedMetadataHandlerImpl(resource);
106 } 106 }
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 case Resource::TextTrack: 1104 case Resource::TextTrack:
1105 case Resource::Media: 1105 case Resource::Media:
1106 case Resource::Manifest: 1106 case Resource::Manifest:
1107 return false; 1107 return false;
1108 } 1108 }
1109 NOTREACHED(); 1109 NOTREACHED();
1110 return false; 1110 return false;
1111 } 1111 }
1112 1112
1113 } // namespace blink 1113 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/FetchUtils.cpp ('k') | third_party/WebKit/Source/core/frame/csp/CSPSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698