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

Unified Diff: gin/per_isolate_data.h

Issue 62333018: Implement Asynchronous Module Definition API for Mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moar testing Created 7 years, 1 month 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: gin/per_isolate_data.h
diff --git a/gin/per_isolate_data.h b/gin/per_isolate_data.h
index c92e9f3f5070c18fe55eb1790750adfafbf3e9e6..e758744bab2b46ae22f8627fe51d63e535d99962 100644
--- a/gin/per_isolate_data.h
+++ b/gin/per_isolate_data.h
@@ -22,15 +22,21 @@ class PerIsolateData {
void SetObjectTemplate(WrapperInfo* info,
v8::Local<v8::ObjectTemplate> object_template);
+ void SetFunctionTemplate(WrapperInfo* info,
+ v8::Local<v8::FunctionTemplate> function_template);
v8::Local<v8::ObjectTemplate> GetObjectTemplate(WrapperInfo* info);
+ v8::Local<v8::FunctionTemplate> GetFunctionTemplate(WrapperInfo* info);
private:
typedef std::map<
WrapperInfo*, v8::Eternal<v8::ObjectTemplate> > ObjectTemplateMap;
+ typedef std::map<
+ WrapperInfo*, v8::Eternal<v8::FunctionTemplate> > FunctionTemplateMap;
v8::Isolate* isolate_;
ObjectTemplateMap object_templates_;
+ FunctionTemplateMap function_templates_;
DISALLOW_COPY_AND_ASSIGN(PerIsolateData);
};

Powered by Google App Engine
This is Rietveld 408576698