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

Unified Diff: Source/core/fetch/CrossOriginAccessControl.h

Issue 732323004: Add use counter for credentialed CORS access from null origins. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: tweak spelling Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/ScriptLoader.cpp ('k') | Source/core/fetch/CrossOriginAccessControl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/CrossOriginAccessControl.h
diff --git a/Source/core/fetch/CrossOriginAccessControl.h b/Source/core/fetch/CrossOriginAccessControl.h
index 3fd12eae5a5d76650b5f285583a88437d3932f8a..7e78f8d518731f0d4b911049537baf6340d3cca7 100644
--- a/Source/core/fetch/CrossOriginAccessControl.h
+++ b/Source/core/fetch/CrossOriginAccessControl.h
@@ -36,6 +36,7 @@ namespace blink {
typedef HashSet<String, CaseFoldingHash> HTTPHeaderSet;
+class ExecutionContext;
class Resource;
struct ResourceLoaderOptions;
class ResourceRequest;
@@ -50,7 +51,7 @@ enum AccessControlStatus {
class CrossOriginAccessControl {
public:
static bool isLegalRedirectLocation(const KURL&, String& errorDescription);
- static bool handleRedirect(Resource*, SecurityOrigin*, ResourceRequest&, const ResourceResponse&, ResourceLoaderOptions&, String&);
+ static bool handleRedirect(ExecutionContext*, Resource*, SecurityOrigin*, ResourceRequest&, const ResourceResponse&, ResourceLoaderOptions&, String&);
};
bool isOnAccessControlResponseHeaderWhitelist(const String&);
@@ -58,7 +59,7 @@ bool isOnAccessControlResponseHeaderWhitelist(const String&);
void updateRequestForAccessControl(ResourceRequest&, SecurityOrigin*, StoredCredentials);
ResourceRequest createAccessControlPreflightRequest(const ResourceRequest&, SecurityOrigin*);
-bool passesAccessControlCheck(const ResourceResponse&, StoredCredentials, SecurityOrigin*, String& errorDescription);
+bool passesAccessControlCheck(ExecutionContext*, const ResourceResponse&, StoredCredentials, SecurityOrigin*, String& errorDescription);
bool passesPreflightStatusCheck(const ResourceResponse&, String& errorDescription);
void parseAccessControlExposeHeadersAllowList(const String& headerValue, HTTPHeaderSet&);
« no previous file with comments | « Source/core/dom/ScriptLoader.cpp ('k') | Source/core/fetch/CrossOriginAccessControl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698