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

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

Issue 954233003: Enable SRI only for same origin and CORS content. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed test failures Created 5 years, 9 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
« no previous file with comments | « Source/core/dom/ScriptLoader.cpp ('k') | Source/core/fetch/Resource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/Resource.h
diff --git a/Source/core/fetch/Resource.h b/Source/core/fetch/Resource.h
index 3cbb4c016a3ea529aeb35cb8c316373cfe7596a6..48ab91cee3f4f6f9a4d1b9dc7fe4dd3f7835d238 100644
--- a/Source/core/fetch/Resource.h
+++ b/Source/core/fetch/Resource.h
@@ -176,8 +176,10 @@ public:
void finish();
// FIXME: Remove the stringless variant once all the callsites' error messages are updated.
- bool passesAccessControlCheck(ExecutionContext*, SecurityOrigin*);
- bool passesAccessControlCheck(ExecutionContext*, SecurityOrigin*, String& errorDescription);
+ bool passesAccessControlCheck(ExecutionContext*, SecurityOrigin*) const;
+ bool passesAccessControlCheck(ExecutionContext*, SecurityOrigin*, String& errorDescription) const;
+
+ bool isEligibleForIntegrityCheck(ExecutionContext*) const;
void clearLoader();
« no previous file with comments | « Source/core/dom/ScriptLoader.cpp ('k') | Source/core/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698