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

Unified Diff: Source/bindings/core/v8/ScriptPromise.h

Issue 1278983003: Adding allocator annotations to blink classes and structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed patch conflict 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/bindings/core/v8/ScriptFunctionCall.h ('k') | Source/bindings/core/v8/ScriptState.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/ScriptPromise.h
diff --git a/Source/bindings/core/v8/ScriptPromise.h b/Source/bindings/core/v8/ScriptPromise.h
index 74a8c27c2498ac6348f66c101fe576212fcbe817..4349ac2bbc1cfb76673a777b2b650b4a3da5159d 100644
--- a/Source/bindings/core/v8/ScriptPromise.h
+++ b/Source/bindings/core/v8/ScriptPromise.h
@@ -35,6 +35,7 @@
#include "bindings/core/v8/ScriptValue.h"
#include "core/CoreExport.h"
#include "platform/heap/Handle.h"
+#include "wtf/Allocator.h"
#include "wtf/PassRefPtr.h"
#include "wtf/Vector.h"
#include <v8.h>
@@ -49,6 +50,7 @@ class DOMException;
// memory leaks since it has a reference from C++ to V8.
//
class CORE_EXPORT ScriptPromise final {
+ ALLOW_ONLY_INLINE_ALLOCATION();
public:
// Constructs an empty promise.
ScriptPromise();
@@ -140,6 +142,7 @@ public:
// This is a utility class intended to be used internally.
// ScriptPromiseResolver is for general purpose.
class CORE_EXPORT InternalResolver final {
+ DISALLOW_ALLOCATION();
public:
explicit InternalResolver(ScriptState*);
v8::Local<v8::Promise> v8Promise() const;
« no previous file with comments | « Source/bindings/core/v8/ScriptFunctionCall.h ('k') | Source/bindings/core/v8/ScriptState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698