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

Unified Diff: Source/bindings/core/v8/V8PersistentValueVector.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/V8PerIsolateData.cpp ('k') | Source/bindings/core/v8/V8RecursionScope.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8PersistentValueVector.h
diff --git a/Source/bindings/core/v8/V8PersistentValueVector.h b/Source/bindings/core/v8/V8PersistentValueVector.h
index 01dd34d3a6bfe0cfa0eda730e20ed3df79de008a..be71875098c1f7ee06bed237697c7646a0e3dad0 100644
--- a/Source/bindings/core/v8/V8PersistentValueVector.h
+++ b/Source/bindings/core/v8/V8PersistentValueVector.h
@@ -31,6 +31,7 @@
#ifndef V8PersistentValueVector_h
#define V8PersistentValueVector_h
+#include "wtf/Allocator.h"
#include "wtf/Vector.h"
#include <v8-util.h>
#include <v8.h>
@@ -38,6 +39,7 @@
namespace blink {
class WTFVectorPersistentValueVectorTraits {
+ STATIC_ONLY(WTFVectorPersistentValueVectorTraits);
public:
typedef Vector<v8::PersistentContainerValue> Impl;
static void Append(Impl* impl, v8::PersistentContainerValue value)
@@ -68,6 +70,7 @@ public:
template<class ValueType>
class V8PersistentValueVector : public v8::PersistentValueVector<ValueType, WTFVectorPersistentValueVectorTraits> {
+ DISALLOW_ALLOCATION();
public:
explicit V8PersistentValueVector(v8::Isolate* isolate) : v8::PersistentValueVector<ValueType, WTFVectorPersistentValueVectorTraits>(isolate) { }
};
« no previous file with comments | « Source/bindings/core/v8/V8PerIsolateData.cpp ('k') | Source/bindings/core/v8/V8RecursionScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698