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

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

Issue 2811793004: Rename EqualIgnoringCase*() to DeprecatedEqualIgnoringCase*() (Closed)
Patch Set: Created 3 years, 8 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 /* 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Some header prefixes mean "Don't copy this header from a 304 response.". 81 // Some header prefixes mean "Don't copy this header from a 304 response.".
82 // Rather than listing all the relevant headers, we can consolidate them into 82 // Rather than listing all the relevant headers, we can consolidate them into
83 // this list, also grabbed from Chromium's net/http/http_response_headers.cc. 83 // this list, also grabbed from Chromium's net/http/http_response_headers.cc.
84 const char* const kHeaderPrefixesToIgnoreAfterRevalidation[] = { 84 const char* const kHeaderPrefixesToIgnoreAfterRevalidation[] = {
85 "content-", "x-content-", "x-webkit-"}; 85 "content-", "x-content-", "x-webkit-"};
86 86
87 static inline bool ShouldUpdateHeaderAfterRevalidation( 87 static inline bool ShouldUpdateHeaderAfterRevalidation(
88 const AtomicString& header) { 88 const AtomicString& header) {
89 for (size_t i = 0; i < WTF_ARRAY_LENGTH(kHeadersToIgnoreAfterRevalidation); 89 for (size_t i = 0; i < WTF_ARRAY_LENGTH(kHeadersToIgnoreAfterRevalidation);
90 i++) { 90 i++) {
91 if (EqualIgnoringCase(header, kHeadersToIgnoreAfterRevalidation[i])) 91 if (DeprecatedEqualIgnoringCase(header,
92 kHeadersToIgnoreAfterRevalidation[i]))
92 return false; 93 return false;
93 } 94 }
94 for (size_t i = 0; 95 for (size_t i = 0;
95 i < WTF_ARRAY_LENGTH(kHeaderPrefixesToIgnoreAfterRevalidation); i++) { 96 i < WTF_ARRAY_LENGTH(kHeaderPrefixesToIgnoreAfterRevalidation); i++) {
96 if (header.StartsWith(kHeaderPrefixesToIgnoreAfterRevalidation[i], 97 if (header.StartsWith(kHeaderPrefixesToIgnoreAfterRevalidation[i],
97 kTextCaseASCIIInsensitive)) 98 kTextCaseASCIIInsensitive))
98 return false; 99 return false;
99 } 100 }
100 return true; 101 return true;
101 } 102 }
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 case Resource::kMedia: 1128 case Resource::kMedia:
1128 case Resource::kManifest: 1129 case Resource::kManifest:
1129 case Resource::kMock: 1130 case Resource::kMock:
1130 return false; 1131 return false;
1131 } 1132 }
1132 NOTREACHED(); 1133 NOTREACHED();
1133 return false; 1134 return false;
1134 } 1135 }
1135 1136
1136 } // namespace blink 1137 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698