Index: Source/core/fetch/ResourceLoaderOptions.h |
diff --git a/Source/core/fetch/ResourceLoaderOptions.h b/Source/core/fetch/ResourceLoaderOptions.h |
index d13908d9758c6a3b4e73605d49176e701d5f1a1d..53a78bf621efc63ab9d92281ce7844fb58ec10d9 100644 |
--- a/Source/core/fetch/ResourceLoaderOptions.h |
+++ b/Source/core/fetch/ResourceLoaderOptions.h |
@@ -34,6 +34,7 @@ |
#include "core/fetch/FetchInitiatorInfo.h" |
#include "platform/CrossThreadCopier.h" |
#include "platform/weborigin/SecurityOrigin.h" |
+#include "wtf/Allocator.h" |
namespace blink { |
@@ -79,6 +80,8 @@ enum CORSEnabled { |
}; |
struct ResourceLoaderOptions { |
+ WTF_MAKE_FAST_ALLOCATED(ResourceLoaderOptions); |
+public: |
ResourceLoaderOptions() |
: dataBufferingPolicy(BufferData) |
, allowCredentials(DoNotAllowStoredCredentials) |
@@ -137,6 +140,7 @@ struct ResourceLoaderOptions { |
// Encode AtomicString (in FetchInitiatorInfo) as String to cross threads. |
struct CrossThreadResourceLoaderOptionsData { |
+ DISALLOW_ALLOCATION(); |
explicit CrossThreadResourceLoaderOptionsData(const ResourceLoaderOptions& options) |
: dataBufferingPolicy(options.dataBufferingPolicy) |
, allowCredentials(options.allowCredentials) |