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

Unified Diff: Source/core/fetch/FetchRequest.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/FetchRequest.h
diff --git a/Source/core/fetch/FetchRequest.h b/Source/core/fetch/FetchRequest.h
index bf47dac8c15a202ec5feed2f0a8d7fa508774211..5531a4b22cf88eb94a4267c620ca4fd41bb8ba58 100644
--- a/Source/core/fetch/FetchRequest.h
+++ b/Source/core/fetch/FetchRequest.h
@@ -32,17 +32,20 @@
#include "core/fetch/ResourceLoaderOptions.h"
#include "platform/network/ResourceLoadPriority.h"
#include "platform/network/ResourceRequest.h"
+#include "wtf/Allocator.h"
#include "wtf/text/AtomicString.h"
namespace blink {
class SecurityOrigin;
class CORE_EXPORT FetchRequest {
+ STACK_ALLOCATED();
public:
enum DeferOption { NoDefer, LazyLoad, DeferredByClient };
enum OriginRestriction { UseDefaultOriginRestrictionForType, RestrictToSameOrigin, NoOriginRestriction };
struct ResourceWidth {
+ DISALLOW_ALLOCATION();
float width;
bool isSet;

Powered by Google App Engine
This is Rietveld 408576698