WebCore:
[WebKit-https.git] / WebCore / loader / ThreadableLoader.h
index b0cff7d..0a4c4e3 100644 (file)
@@ -58,12 +58,17 @@ namespace WebCore {
         DoNotAllowStoredCredentials
     };
 
+    enum RedirectOriginCheck {
+        RequireSameRedirectOrigin,
+        AllowDifferentRedirectOrigin
+    };
+
     // Useful for doing loader operations from any thread (not threadsafe, 
     // just able to run on threads other than the main thread).
     class ThreadableLoader : Noncopyable {
     public:
         static void loadResourceSynchronously(ScriptExecutionContext*, const ResourceRequest&, ThreadableLoaderClient&, StoredCredentials);
-        static PassRefPtr<ThreadableLoader> create(ScriptExecutionContext*, ThreadableLoaderClient*, const ResourceRequest&, LoadCallbacks, ContentSniff, StoredCredentials);
+        static PassRefPtr<ThreadableLoader> create(ScriptExecutionContext*, ThreadableLoaderClient*, const ResourceRequest&, LoadCallbacks, ContentSniff, StoredCredentials, RedirectOriginCheck);
 
         virtual void cancel() = 0;
         void ref() { refThreadableLoader(); }