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

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

Issue 149643003: Improve handling of CORS redirects for some resource loads. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Track source origin via ResourceLoaderOptions.securityOrigin Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/fetch/ResourceLoaderHost.h
diff --git a/Source/core/fetch/ResourceLoaderHost.h b/Source/core/fetch/ResourceLoaderHost.h
index ea7d58b7718ce918331b89e9711472b95d3d8e8f..4749e04f9d99f085f07c4692f5586f57cd8d406a 100644
--- a/Source/core/fetch/ResourceLoaderHost.h
+++ b/Source/core/fetch/ResourceLoaderHost.h
@@ -69,8 +69,8 @@ public:
virtual void willTerminateResourceLoader(ResourceLoader*) = 0;
virtual void willStartLoadingResource(ResourceRequest&) = 0;
- virtual bool shouldRequest(Resource*, const ResourceRequest&, const ResourceLoaderOptions&) = 0;
- virtual bool canAccessResource(Resource*, const KURL&) const = 0;
+ virtual bool canAccessRedirect(Resource*, ResourceRequest&, const ResourceResponse&, ResourceLoaderOptions&) = 0;
+ virtual bool canAccessResource(Resource*, SecurityOrigin* sourceOrigin, const KURL&) const = 0;
virtual bool defersLoading() const = 0;
virtual bool isLoadedBy(ResourceLoaderHost*) const = 0;

Powered by Google App Engine
This is Rietveld 408576698