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

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

Issue 19596004: Allow sites to enable 'window.onerror' handlers for cross-domain scripts. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rework. Created 7 years, 5 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
« Source/core/dom/ScriptLoader.cpp ('K') | « Source/core/dom/ScriptLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/CrossOriginAccessControl.h
diff --git a/Source/core/loader/CrossOriginAccessControl.h b/Source/core/loader/CrossOriginAccessControl.h
index c088f089ae11d553d56ec496c57f490d1164335e..961c1ab3e8d3ef884b2ca4652d847651dd3fef04 100644
--- a/Source/core/loader/CrossOriginAccessControl.h
+++ b/Source/core/loader/CrossOriginAccessControl.h
@@ -40,6 +40,11 @@ class HTTPHeaderMap;
class ResourceResponse;
class SecurityOrigin;
+enum ScriptAccessControlCheckStatus {
+ ScriptIsNotSharedCrossOrigin,
+ ScriptIsSharedCrossOrigin
+};
abarth-chromium 2013/08/05 22:31:45 Is this the right place for this enum? It's a bid
Mike West 2013/08/06 07:54:03 I like it. Done.
+
bool isSimpleCrossOriginAccessRequest(const String& method, const HTTPHeaderMap&);
bool isOnAccessControlSimpleRequestMethodWhitelist(const String&);
bool isOnAccessControlSimpleRequestHeaderWhitelist(const String& name, const String& value);
« Source/core/dom/ScriptLoader.cpp ('K') | « Source/core/dom/ScriptLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698