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

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

Issue 2806263002: Rename blink::AtomicString::Lower() to DeprecatedLower(). (Closed)
Patch Set: Update a comment 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 if (FetchUtils::IsSimpleHeader(header.key, header.value)) { 61 if (FetchUtils::IsSimpleHeader(header.key, header.value)) {
62 // Exclude simple headers. 62 // Exclude simple headers.
63 continue; 63 continue;
64 } 64 }
65 if (EqualIgnoringCase(header.key, "referer")) { 65 if (EqualIgnoringCase(header.key, "referer")) {
66 // When the request is from a Worker, referrer header was added by 66 // When the request is from a Worker, referrer header was added by
67 // WorkerThreadableLoader. But it should not be added to 67 // WorkerThreadableLoader. But it should not be added to
68 // Access-Control-Request-Headers header. 68 // Access-Control-Request-Headers header.
69 continue; 69 continue;
70 } 70 }
71 filtered_headers.push_back(header.key.Lower()); 71 filtered_headers.push_back(header.key.DeprecatedLower());
72 } 72 }
73 if (!filtered_headers.size()) 73 if (!filtered_headers.size())
74 return g_null_atom; 74 return g_null_atom;
75 75
76 // Sort header names lexicographically. 76 // Sort header names lexicographically.
77 std::sort(filtered_headers.begin(), filtered_headers.end(), 77 std::sort(filtered_headers.begin(), filtered_headers.end(),
78 WTF::CodePointCompareLessThan); 78 WTF::CodePointCompareLessThan);
79 StringBuilder header_buffer; 79 StringBuilder header_buffer;
80 for (const String& header : filtered_headers) { 80 for (const String& header : filtered_headers) {
81 if (!header_buffer.IsEmpty()) 81 if (!header_buffer.IsEmpty())
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 // 537 //
538 // This is equivalent to the step 2 in 538 // This is equivalent to the step 2 in
539 // https://fetch.spec.whatwg.org/#http-network-or-cache-fetch 539 // https://fetch.spec.whatwg.org/#http-network-or-cache-fetch
540 if (options.credentials_requested == kClientDidNotRequestCredentials) 540 if (options.credentials_requested == kClientDidNotRequestCredentials)
541 options.allow_credentials = kDoNotAllowStoredCredentials; 541 options.allow_credentials = kDoNotAllowStoredCredentials;
542 } 542 }
543 return true; 543 return true;
544 } 544 }
545 545
546 } // namespace blink 546 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698