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

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

Issue 23582002: CORS: Update the redirection status in Inspector Network tab for CORS requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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/loader/DocumentThreadableLoader.h
diff --git a/Source/core/loader/DocumentThreadableLoader.h b/Source/core/loader/DocumentThreadableLoader.h
index 4e44cfb60e622aaf67928f7b0c63fbef369b7dd8..df0e851f5aa23745d5691e114b931aa19caaf964 100644
--- a/Source/core/loader/DocumentThreadableLoader.h
+++ b/Source/core/loader/DocumentThreadableLoader.h
@@ -44,14 +44,15 @@
#include "wtf/text/WTFString.h"
namespace WebCore {
- class Document;
- class KURL;
- class ResourceRequest;
- class SecurityOrigin;
- class ThreadableLoaderClient;
-
- class DocumentThreadableLoader : public RefCounted<DocumentThreadableLoader>, public ThreadableLoader, private RawResourceClient {
- WTF_MAKE_FAST_ALLOCATED;
+
+class Document;
+class KURL;
+class ResourceRequest;
+class SecurityOrigin;
+class ThreadableLoaderClient;
+
+class DocumentThreadableLoader : public RefCounted<DocumentThreadableLoader>, public ThreadableLoader, private RawResourceClient {
+ WTF_MAKE_FAST_ALLOCATED;
public:
static void loadResourceSynchronously(Document*, const ResourceRequest&, ThreadableLoaderClient&, const ThreadableLoaderOptions&);
static PassRefPtr<DocumentThreadableLoader> create(Document*, ThreadableLoaderClient*, const ResourceRequest&, const ThreadableLoaderOptions&);
@@ -92,8 +93,8 @@ namespace WebCore {
void didFail(unsigned long identifier, const ResourceError&);
void didTimeout(Timer<DocumentThreadableLoader>*);
void makeCrossOriginAccessRequest(const ResourceRequest&);
- void makeSimpleCrossOriginAccessRequest(const ResourceRequest& request);
- void makeCrossOriginAccessRequestWithPreflight(const ResourceRequest& request);
+ void makeSimpleCrossOriginAccessRequest(const ResourceRequest&);
+ void makeCrossOriginAccessRequestWithPreflight(const ResourceRequest&);
void preflightSuccess();
void preflightFailure(unsigned long identifier, const String& url, const String& errorDescription);
@@ -102,6 +103,7 @@ namespace WebCore {
bool isAllowedByPolicy(const KURL&) const;
SecurityOrigin* securityOrigin() const;
+ bool checkCrossOriginAccessRedirectionUrl(const KURL&, String& errorDescription);
ResourcePtr<RawResource> m_resource;
ThreadableLoaderClient* m_client;
@@ -110,7 +112,7 @@ namespace WebCore {
bool m_sameOriginRequest;
bool m_simpleRequest;
bool m_async;
- OwnPtr<ResourceRequest> m_actualRequest; // non-null during Access Control preflight checks
+ OwnPtr<ResourceRequest> m_actualRequest; // non-null during Access Control preflight checks
Timer<DocumentThreadableLoader> m_timeoutTimer;
};

Powered by Google App Engine
This is Rietveld 408576698