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

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

Issue 2797983002: Rewrite references to "wtf/" to "platform/wtf/" in platform/loader. (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) 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 18 matching lines...) Expand all
29 #include <algorithm> 29 #include <algorithm>
30 #include <memory> 30 #include <memory>
31 #include "platform/loader/fetch/FetchUtils.h" 31 #include "platform/loader/fetch/FetchUtils.h"
32 #include "platform/loader/fetch/Resource.h" 32 #include "platform/loader/fetch/Resource.h"
33 #include "platform/loader/fetch/ResourceLoaderOptions.h" 33 #include "platform/loader/fetch/ResourceLoaderOptions.h"
34 #include "platform/loader/fetch/ResourceRequest.h" 34 #include "platform/loader/fetch/ResourceRequest.h"
35 #include "platform/loader/fetch/ResourceResponse.h" 35 #include "platform/loader/fetch/ResourceResponse.h"
36 #include "platform/network/HTTPParsers.h" 36 #include "platform/network/HTTPParsers.h"
37 #include "platform/weborigin/SchemeRegistry.h" 37 #include "platform/weborigin/SchemeRegistry.h"
38 #include "platform/weborigin/SecurityOrigin.h" 38 #include "platform/weborigin/SecurityOrigin.h"
39 #include "wtf/PtrUtil.h" 39 #include "platform/wtf/PtrUtil.h"
40 #include "wtf/Threading.h" 40 #include "platform/wtf/Threading.h"
41 #include "wtf/text/AtomicString.h" 41 #include "platform/wtf/text/AtomicString.h"
42 #include "wtf/text/StringBuilder.h" 42 #include "platform/wtf/text/StringBuilder.h"
43 43
44 namespace blink { 44 namespace blink {
45 45
46 bool isOnAccessControlResponseHeaderWhitelist(const String& name) { 46 bool isOnAccessControlResponseHeaderWhitelist(const String& name) {
47 DEFINE_THREAD_SAFE_STATIC_LOCAL( 47 DEFINE_THREAD_SAFE_STATIC_LOCAL(
48 HTTPHeaderSet, allowedCrossOriginResponseHeaders, 48 HTTPHeaderSet, allowedCrossOriginResponseHeaders,
49 (new HTTPHeaderSet({ 49 (new HTTPHeaderSet({
50 "cache-control", "content-language", "content-type", "expires", 50 "cache-control", "content-language", "content-type", "expires",
51 "last-modified", "pragma", 51 "last-modified", "pragma",
52 }))); 52 })));
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 // 532 //
533 // This is equivalent to the step 2 in 533 // This is equivalent to the step 2 in
534 // https://fetch.spec.whatwg.org/#http-network-or-cache-fetch 534 // https://fetch.spec.whatwg.org/#http-network-or-cache-fetch
535 if (options.credentialsRequested == ClientDidNotRequestCredentials) 535 if (options.credentialsRequested == ClientDidNotRequestCredentials)
536 options.allowCredentials = DoNotAllowStoredCredentials; 536 options.allowCredentials = DoNotAllowStoredCredentials;
537 } 537 }
538 return true; 538 return true;
539 } 539 }
540 540
541 } // namespace blink 541 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698