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

Unified Diff: Source/core/loader/appcache/ApplicationCacheHost.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
« Source/core/loader/EmptyClients.h ('K') | « Source/core/loader/ThreadableLoader.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/appcache/ApplicationCacheHost.h
diff --git a/Source/core/loader/appcache/ApplicationCacheHost.h b/Source/core/loader/appcache/ApplicationCacheHost.h
index 7fe31e916181f0db20cd2f5e3af95f0f383bb095..09aaa71c01ba54438711c219fa7150abb4c5dcc2 100644
--- a/Source/core/loader/appcache/ApplicationCacheHost.h
+++ b/Source/core/loader/appcache/ApplicationCacheHost.h
@@ -34,6 +34,7 @@
#include "platform/heap/Handle.h"
#include "platform/weborigin/KURL.h"
#include "public/platform/WebApplicationCacheHostClient.h"
+#include "wtf/Allocator.h"
#include "wtf/OwnPtr.h"
#include "wtf/Vector.h"
@@ -76,6 +77,7 @@ namespace blink {
};
struct CacheInfo {
+ STACK_ALLOCATED();
CacheInfo(const KURL& manifest, double creationTime, double updateTime, long long size)
: m_manifest(manifest)
, m_creationTime(creationTime)
@@ -88,6 +90,7 @@ namespace blink {
};
struct ResourceInfo {
+ ALLOW_ONLY_INLINE_ALLOCATION();
ResourceInfo(const KURL& resource, bool isMaster, bool isManifest, bool isFallback, bool isForeign, bool isExplicit, long long size)
: m_resource(resource)
, m_isMaster(isMaster)
« Source/core/loader/EmptyClients.h ('K') | « Source/core/loader/ThreadableLoader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698