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

Unified Diff: Source/core/fetch/ResourceLoaderOptions.h

Issue 1310643003: Make classes and structures in core/events and core/fetch fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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/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)

Powered by Google App Engine
This is Rietveld 408576698