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

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

Issue 1304043006: Make classes and structures in core/loader 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/loader/ThreadableLoader.h
diff --git a/Source/core/loader/ThreadableLoader.h b/Source/core/loader/ThreadableLoader.h
index e48f842e36da137ccf8d532a5c563034211af258..c45d4309225682cdd278d0882549f5b5fad558eb 100644
--- a/Source/core/loader/ThreadableLoader.h
+++ b/Source/core/loader/ThreadableLoader.h
@@ -34,6 +34,7 @@
#include "core/CoreExport.h"
#include "core/fetch/ResourceLoaderOptions.h"
#include "platform/CrossThreadCopier.h"
+#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -63,6 +64,7 @@ enum ContentSecurityPolicyEnforcement {
};
struct ThreadableLoaderOptions {
+ DISALLOW_ALLOCATION();
ThreadableLoaderOptions()
: preflightPolicy(ConsiderPreflight)
, crossOriginRequestPolicy(DenyCrossOriginRequests)
@@ -80,6 +82,7 @@ struct ThreadableLoaderOptions {
// Encode AtomicString as String to cross threads.
struct CrossThreadThreadableLoaderOptionsData {
+ STACK_ALLOCATED();
explicit CrossThreadThreadableLoaderOptionsData(const ThreadableLoaderOptions& options)
: preflightPolicy(options.preflightPolicy)
, crossOriginRequestPolicy(options.crossOriginRequestPolicy)

Powered by Google App Engine
This is Rietveld 408576698