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

Unified Diff: Source/core/html/track/vtt/VTTToken.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/track/vtt/VTTScanner.h ('k') | Source/core/html/track/vtt/VTTTokenizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/vtt/VTTToken.h
diff --git a/Source/core/html/track/vtt/VTTToken.h b/Source/core/html/track/vtt/VTTToken.h
index 4bcbadf8a97804ec5d38aacb645b66489c1a583c..f1b8f2dd0ae0deb06ec14125e10fde4a49a4690a 100644
--- a/Source/core/html/track/vtt/VTTToken.h
+++ b/Source/core/html/track/vtt/VTTToken.h
@@ -31,9 +31,12 @@
#ifndef VTTToken_h
#define VTTToken_h
+#include "wtf/Allocator.h"
+
namespace blink {
class VTTTokenTypes {
+ STATIC_ONLY(VTTTokenTypes);
public:
enum Type {
Uninitialized,
@@ -45,6 +48,7 @@ public:
};
class VTTToken {
+ STACK_ALLOCATED();
public:
typedef VTTTokenTypes Type;
« no previous file with comments | « Source/core/html/track/vtt/VTTScanner.h ('k') | Source/core/html/track/vtt/VTTTokenizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698