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

Unified Diff: gin/function_template.h

Issue 113893005: [gin] Introduce Wrappable::GetObjectTemplate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years 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/function_template.h
diff --git a/gin/function_template.h b/gin/function_template.h
index 14f6e78fe2fd7482e461dd7072ded9a31c77fe87..10dfa9dc0a82fc407e711d74b7e69877078ed058 100644
--- a/gin/function_template.h
+++ b/gin/function_template.h
@@ -62,8 +62,13 @@ struct CallbackParamTraits<const T*> {
class GIN_EXPORT CallbackHolderBase : public Wrappable<CallbackHolderBase> {
public:
static WrapperInfo kWrapperInfo;
+
protected:
virtual ~CallbackHolderBase() {}
+
+ private:
+ friend class Wrappable<CallbackHolderBase>;
+ static v8::Local<v8::ObjectTemplate> GetObjectTemplate(v8::Isolate* isolate);
};
template<typename Sig>
@@ -331,11 +336,6 @@ struct Dispatcher<R(P1, P2, P3, P4)> {
} // namespace internal
-// This should be called once per-isolate to initialize the function template
-// system.
-GIN_EXPORT void InitFunctionTemplates(PerIsolateData* isolate_data);
-
-
// CreateFunctionTemplate creates a v8::FunctionTemplate that will create
// JavaScript functions that execute a provided C++ function or base::Callback.
// JavaScript arguments are automatically converted via gin::Converter, as is

Powered by Google App Engine
This is Rietveld 408576698