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

Unified Diff: Source/core/dom/Microtask.h

Issue 1304043002: Make classes and structures in core/dom 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/dom/IncrementLoadEventDelayCount.h ('k') | Source/core/dom/MutationObserverInterestGroup.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Microtask.h
diff --git a/Source/core/dom/Microtask.h b/Source/core/dom/Microtask.h
index e111c03da1dac1d1b06913a2c62c37b97c434e99..97f077117aaac848048c337cb43f4046cd474626 100644
--- a/Source/core/dom/Microtask.h
+++ b/Source/core/dom/Microtask.h
@@ -34,6 +34,7 @@
#include "bindings/core/v8/ScriptState.h"
#include "core/CoreExport.h"
#include "public/platform/WebThread.h"
+#include "wtf/Allocator.h"
#include "wtf/Functional.h"
#include "wtf/PassOwnPtr.h"
#include <v8.h>
@@ -41,6 +42,7 @@
namespace blink {
class CORE_EXPORT Microtask {
+ STATIC_ONLY(Microtask);
public:
static void performCheckpoint(v8::Isolate*);
static bool performingCheckpoint(v8::Isolate*);
@@ -50,9 +52,6 @@ public:
// ScriptState themselves.
static void enqueueMicrotask(PassOwnPtr<WebThread::Task>);
static void enqueueMicrotask(PassOwnPtr<Closure>);
-
-private:
- explicit Microtask();
};
} // namespace blink
« no previous file with comments | « Source/core/dom/IncrementLoadEventDelayCount.h ('k') | Source/core/dom/MutationObserverInterestGroup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698