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

Unified Diff: Source/bindings/core/v8/Dictionary.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/Dictionary.h
diff --git a/Source/bindings/core/v8/Dictionary.h b/Source/bindings/core/v8/Dictionary.h
index ab4e174e7117b600afd006c46bf0bc40d50e42f9..015c1d4fbfa7207a0531b391e50a53892b933f69 100644
--- a/Source/bindings/core/v8/Dictionary.h
+++ b/Source/bindings/core/v8/Dictionary.h
@@ -46,6 +46,7 @@ namespace blink {
// from a V8 object. Instances of this class must not outlive V8's handle scope
// because they hold a V8 value without putting it on persistent handles.
class CORE_EXPORT Dictionary final {
+ ALLOW_ONLY_INLINE_ALLOCATION();
public:
Dictionary();
Dictionary(const v8::Local<v8::Value>& options, v8::Isolate*, ExceptionState&);
@@ -110,6 +111,7 @@ struct DictionaryHelper {
}
template <template <typename> class PointerType, typename T>
static bool get(const Dictionary&, const String& key, PointerType<T>& value);
+ STATIC_ONLY(DictionaryHelper);
haraken 2015/08/12 07:56:12 Can we move this to the top of the class/struct de
tasak 2015/08/12 09:13:26 Done.
};
}

Powered by Google App Engine
This is Rietveld 408576698