Index: Source/core/fetch/CrossOriginAccessControl.h |
diff --git a/Source/core/fetch/CrossOriginAccessControl.h b/Source/core/fetch/CrossOriginAccessControl.h |
index 450c342253f38f973a310707154d51168955f776..a96536f553a472e670855a4c2cc1266d66c29d6f 100644 |
--- a/Source/core/fetch/CrossOriginAccessControl.h |
+++ b/Source/core/fetch/CrossOriginAccessControl.h |
@@ -37,6 +37,9 @@ namespace WebCore { |
typedef HashSet<String, CaseFoldingHash> HTTPHeaderSet; |
class HTTPHeaderMap; |
+class Resource; |
+struct ResourceLoaderOptions; |
+class ResourceRequest; |
class ResourceResponse; |
class SecurityOrigin; |
@@ -45,6 +48,12 @@ enum AccessControlStatus { |
SharableCrossOrigin |
}; |
+class CrossOriginAccessControl { |
+public: |
+ static bool isLegalRedirectLocation(const KURL&, String& errorDescription); |
+ static bool handleRedirect(Resource*, SecurityOrigin*, ResourceRequest&, const ResourceResponse&, ResourceLoaderOptions&, String&); |
+}; |
+ |
bool isSimpleCrossOriginAccessRequest(const String& method, const HTTPHeaderMap&); |
bool isOnAccessControlSimpleRequestMethodWhitelist(const String&); |
bool isOnAccessControlSimpleRequestHeaderWhitelist(const AtomicString& name, const AtomicString& value); |