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

Unified Diff: third_party/WebKit/Source/core/loader/BeaconLoader.h

Issue 2177383006: Update and fix sendBeacon() redirect behavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: improve content type initialization Created 4 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
Index: third_party/WebKit/Source/core/loader/BeaconLoader.h
diff --git a/third_party/WebKit/Source/core/loader/BeaconLoader.h b/third_party/WebKit/Source/core/loader/BeaconLoader.h
index c11b2ec884142b04a1a712e0a161b7412e312c8e..4b0b59a30f1da5dc7253040a119f77a375abc61e 100644
--- a/third_party/WebKit/Source/core/loader/BeaconLoader.h
+++ b/third_party/WebKit/Source/core/loader/BeaconLoader.h
@@ -6,6 +6,7 @@
#define BeaconLoader_h
#include "core/CoreExport.h"
+#include "core/fetch/ResourceLoaderOptions.h" // CORSEnabled
#include "core/loader/PingLoader.h"
#include "platform/heap/Handle.h"
#include "public/platform/WebURLLoaderClient.h"
@@ -36,9 +37,10 @@ public:
private:
class Sender;
- BeaconLoader(LocalFrame*, ResourceRequest&, const FetchInitiatorInfo&, StoredCredentials);
+ BeaconLoader(LocalFrame*, ResourceRequest&, const FetchInitiatorInfo&, StoredCredentials, CORSEnabled);
RefPtr<SecurityOrigin> m_beaconOrigin;
+ bool m_redirectsFollowCORS;
// WebURLLoaderClient
void willFollowRedirect(WebURLLoader*, WebURLRequest&, const WebURLResponse&, int64_t encodedDataLength) override;

Powered by Google App Engine
This is Rietveld 408576698