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

Unified Diff: Source/bindings/core/v8/V8GlobalValueMap.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/V8GCForContextDispose.h ('k') | Source/bindings/core/v8/V8HiddenValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8GlobalValueMap.h
diff --git a/Source/bindings/core/v8/V8GlobalValueMap.h b/Source/bindings/core/v8/V8GlobalValueMap.h
index dbbc6ceb761e1cfa98f49ac936547081cbd129cb..83401d56095addd163f254afde2e534dee402412 100644
--- a/Source/bindings/core/v8/V8GlobalValueMap.h
+++ b/Source/bindings/core/v8/V8GlobalValueMap.h
@@ -5,6 +5,7 @@
#ifndef V8GlobalValueMap_h
#define V8GlobalValueMap_h
+#include "wtf/Allocator.h"
#include "wtf/HashMap.h"
#include "wtf/text/StringHash.h"
#include <v8-util.h>
@@ -22,6 +23,7 @@ namespace blink {
*/
template <class KeyType, class ValueType, v8::PersistentContainerCallbackType type>
class V8GlobalValueMapTraits {
+ STATIC_ONLY(V8GlobalValueMapTraits);
public:
// Map traits:
typedef HashMap<KeyType, v8::PersistentContainerValue> Impl;
@@ -93,6 +95,7 @@ public:
*/
template <class KeyType, class ValueType, v8::PersistentContainerCallbackType type>
class V8GlobalValueMap : public v8::GlobalValueMap<KeyType, ValueType, V8GlobalValueMapTraits<KeyType, ValueType, type>> {
+ DISALLOW_ALLOCATION();
public:
typedef V8GlobalValueMapTraits<KeyType, ValueType, type> Traits;
explicit V8GlobalValueMap(v8::Isolate* isolate)
« no previous file with comments | « Source/bindings/core/v8/V8GCForContextDispose.h ('k') | Source/bindings/core/v8/V8HiddenValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698