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

Unified Diff: extensions/renderer/bindings/api_binding.h

Issue 2950353004: [Extensions Bindings] Check availability of custom API properties (Closed)
Patch Set: . Created 3 years, 6 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: extensions/renderer/bindings/api_binding.h
diff --git a/extensions/renderer/bindings/api_binding.h b/extensions/renderer/bindings/api_binding.h
index 3412e6e2133c6be1e54eb502fdd707a8e63bcbbd..5b71373e41a0b69970942c8ae0a2d9c9f5eed8ec 100644
--- a/extensions/renderer/bindings/api_binding.h
+++ b/extensions/renderer/bindings/api_binding.h
@@ -82,10 +82,12 @@ class APIBinding {
void InitializeTemplate(v8::Isolate* isolate);
// Decorates |object_template| with the properties specified by |properties|.
+ // |path| represents the current path the object from the API root.
void DecorateTemplateWithProperties(
v8::Isolate* isolate,
v8::Local<v8::ObjectTemplate> object_template,
- const base::DictionaryValue& properties);
+ const base::DictionaryValue& properties,
+ const std::string& path);
// Handler for getting the v8::Object associated with an event on the API.
static void GetEventObject(v8::Local<v8::Name>,

Powered by Google App Engine
This is Rietveld 408576698