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

Unified Diff: Source/core/loader/LinkHeader.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/LinkHeader.h
diff --git a/Source/core/loader/LinkHeader.h b/Source/core/loader/LinkHeader.h
index af14abf0e417ff36d1b8fbb8ad73d4c29061eba1..a3b983637c239ad2c78cdb6eb23a5e0f11b26d38 100644
--- a/Source/core/loader/LinkHeader.h
+++ b/Source/core/loader/LinkHeader.h
@@ -7,11 +7,13 @@
#include "core/CoreExport.h"
#include "core/html/CrossOriginAttribute.h"
+#include "wtf/Allocator.h"
#include "wtf/text/WTFString.h"
namespace blink {
class LinkHeader {
+ ALLOW_ONLY_INLINE_ALLOCATION();
public:
template <typename CharType>
LinkHeader(CharType*& position, CharType* end);
@@ -38,6 +40,7 @@ private:
};
class CORE_EXPORT LinkHeaderSet {
+ STACK_ALLOCATED();
public:
LinkHeaderSet(const String& header);

Powered by Google App Engine
This is Rietveld 408576698