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

Unified Diff: Source/core/fetch/Resource.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/Resource.h
diff --git a/Source/core/fetch/Resource.h b/Source/core/fetch/Resource.h
index 1a60555f7d72ecd7b928d6475f5b9f53eb6a63c9..28944d85bfa91e82b4444d540888a0a3f6c04317 100644
--- a/Source/core/fetch/Resource.h
+++ b/Source/core/fetch/Resource.h
@@ -32,6 +32,7 @@
#include "platform/network/ResourceRequest.h"
#include "platform/network/ResourceResponse.h"
#include "public/platform/WebDataConsumerHandle.h"
+#include "wtf/Allocator.h"
#include "wtf/HashCountedSet.h"
#include "wtf/HashSet.h"
#include "wtf/OwnPtr.h"
@@ -324,6 +325,7 @@ protected:
bool hasClient(ResourceClient* client) { return m_clients.contains(client) || m_clientsAwaitingCallback.contains(client); }
struct RedirectPair {
+ ALLOW_ONLY_INLINE_ALLOCATION();
public:
explicit RedirectPair(const ResourceRequest& request, const ResourceResponse& redirectResponse)
: m_request(request)
@@ -421,6 +423,7 @@ private:
};
class ResourceFactory {
+ STACK_ALLOCATED();
public:
virtual Resource* create(const ResourceRequest&, const String&) const = 0;
Resource::Type type() const { return m_type; }

Powered by Google App Engine
This is Rietveld 408576698