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

Unified Diff: Source/core/html/parser/XSSAuditor.h

Issue 1306413003: Make classes and structures in core/html 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
« no previous file with comments | « Source/core/html/parser/TextResourceDecoder.h ('k') | Source/core/html/parser/XSSAuditorDelegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/XSSAuditor.h
diff --git a/Source/core/html/parser/XSSAuditor.h b/Source/core/html/parser/XSSAuditor.h
index 79bf69fcfecdab45f90b65ccd68606e24e805299..b50f28a88d8863d9faa2704e1eef002dd744e934 100644
--- a/Source/core/html/parser/XSSAuditor.h
+++ b/Source/core/html/parser/XSSAuditor.h
@@ -30,6 +30,7 @@
#include "platform/network/HTTPParsers.h"
#include "platform/text/SuffixTree.h"
#include "platform/weborigin/KURL.h"
+#include "wtf/Allocator.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/text/TextEncoding.h"
@@ -41,6 +42,7 @@ class XSSInfo;
class XSSAuditorDelegate;
struct FilterTokenRequest {
+ STACK_ALLOCATED();
FilterTokenRequest(HTMLToken& token, HTMLSourceTracker& sourceTracker, bool shouldAllowCDATA)
: token(token)
, sourceTracker(sourceTracker)
@@ -53,6 +55,7 @@ struct FilterTokenRequest {
};
class XSSAuditor {
+ WTF_MAKE_FAST_ALLOCATED(XSSAuditor);
WTF_MAKE_NONCOPYABLE(XSSAuditor);
public:
XSSAuditor();
« no previous file with comments | « Source/core/html/parser/TextResourceDecoder.h ('k') | Source/core/html/parser/XSSAuditorDelegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698