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

Unified Diff: Source/core/fetch/ResourceClientWalker.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/ResourceClientWalker.h
diff --git a/Source/core/fetch/ResourceClientWalker.h b/Source/core/fetch/ResourceClientWalker.h
index 3f35eca9dacde177a12cfeebc2c48e8cd790ed47..20d49659d9710c450c457e4e1bfcc06a14ddd9ff 100644
--- a/Source/core/fetch/ResourceClientWalker.h
+++ b/Source/core/fetch/ResourceClientWalker.h
@@ -26,6 +26,7 @@
#define ResourceClientWalker_h
#include "core/fetch/ResourceClient.h"
+#include "wtf/Allocator.h"
#include "wtf/HashCountedSet.h"
#include "wtf/Vector.h"
@@ -34,6 +35,7 @@ namespace blink {
// Call this "walker" instead of iterator so people won't expect Qt or STL-style iterator interface.
// Just keep calling next() on this. It's safe from deletions of items.
template<typename T> class ResourceClientWalker {
+ STACK_ALLOCATED();
public:
ResourceClientWalker(const HashCountedSet<ResourceClient*>& set)
: m_clientSet(set), m_clientVector(set.size()), m_index(0)

Powered by Google App Engine
This is Rietveld 408576698