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

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

Issue 1278983003: Adding allocator annotations to blink classes and structs. (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/bindings/core/v8/V8DOMConfiguration.h
diff --git a/Source/bindings/core/v8/V8DOMConfiguration.h b/Source/bindings/core/v8/V8DOMConfiguration.h
index 80738cf5e3eb1b0d666fb712a34432c12b95f6f3..293c646ada05d654c3dd9900040e26d739ac3daf 100644
--- a/Source/bindings/core/v8/V8DOMConfiguration.h
+++ b/Source/bindings/core/v8/V8DOMConfiguration.h
@@ -37,6 +37,8 @@
namespace blink {
class CORE_EXPORT V8DOMConfiguration final {
+ DISALLOW_ALLOCATION();
+ WTF_MAKE_NONCOPYABLE(V8DOMConfiguration);
public:
// The following Configuration structs and install methods are used for
// setting multiple properties on ObjectTemplate / FunctionTemplate, used
@@ -75,6 +77,9 @@ public:
unsigned exposeConfiguration : 1; // ExposeConfiguration
unsigned propertyLocationConfiguration : 3; // PropertyLocationConfiguration
unsigned holderCheckConfiguration : 1; // HolderCheckConfiguration
+
+ DISALLOW_ALLOCATION();
+ WTF_MAKE_NONCOPYABLE(AttributeConfiguration);
};
static void installAttributes(v8::Isolate*, v8::Local<v8::ObjectTemplate> instanceTemplate, v8::Local<v8::ObjectTemplate> prototypeTemplate, const AttributeConfiguration*, size_t attributeCount);
@@ -95,6 +100,9 @@ public:
unsigned exposeConfiguration : 1; // ExposeConfiguration
unsigned propertyLocationConfiguration : 3; // PropertyLocationConfiguration
unsigned holderCheckConfiguration : 1; // HolderCheckConfiguration
+
+ DISALLOW_ALLOCATION();
+ WTF_MAKE_NONCOPYABLE(AccessorConfiguration);
};
static void installAccessors(v8::Isolate*, v8::Local<v8::ObjectTemplate> instanceTemplate, v8::Local<v8::ObjectTemplate> prototypeTemplate, v8::Local<v8::FunctionTemplate> interfaceTemplate, v8::Local<v8::Signature>, const AccessorConfiguration*, size_t accessorCount);
@@ -122,6 +130,9 @@ public:
double dvalue;
const char* const svalue;
ConstantType type;
+
+ DISALLOW_ALLOCATION();
+ WTF_MAKE_NONCOPYABLE(ConstantConfiguration);
};
// Constant installation
@@ -153,6 +164,9 @@ public:
v8::FunctionCallback callbackForMainWorld;
int length;
ExposeConfiguration exposeConfiguration;
+
+ DISALLOW_ALLOCATION();
+ WTF_MAKE_NONCOPYABLE(MethodConfiguration);
};
struct SymbolKeyedMethodConfiguration {
@@ -167,6 +181,9 @@ public:
// SymbolKeyedMethodConfiguration doesn't support per-world bindings.
int length;
ExposeConfiguration exposeConfiguration;
+
+ DISALLOW_ALLOCATION();
+ WTF_MAKE_NONCOPYABLE(SymbolKeyedMethodConfiguration);
};
static void installMethods(v8::Isolate*, v8::Local<v8::ObjectTemplate> prototypeTemplate, v8::Local<v8::Signature>, v8::PropertyAttribute, const MethodConfiguration*, size_t callbackCount);

Powered by Google App Engine
This is Rietveld 408576698