5#ifndef INCLUDE_V8_EXTENSION_H_
6#define INCLUDE_V8_EXTENSION_H_
16class FunctionTemplate;
27 Extension(
const char* name,
const char* source =
nullptr,
int dep_count = 0,
28 const char** deps =
nullptr,
int source_length = -1);
35 const char*
name()
const {
return name_; }
51 size_t source_length_;
Definition: v8-extension.h:23
virtual Local< FunctionTemplate > GetNativeFunctionTemplate(Isolate *isolate, Local< String > name)
Definition: v8-extension.h:30
const String::ExternalOneByteStringResource * source() const
Definition: v8-extension.h:37
size_t source_length() const
Definition: v8-extension.h:36
Extension(const Extension &)=delete
Extension(const char *name, const char *source=nullptr, int dep_count=0, const char **deps=nullptr, int source_length=-1)
void operator=(const Extension &)=delete
virtual ~Extension()
Definition: v8-extension.h:29
const char ** dependencies() const
Definition: v8-extension.h:41
int dependency_count() const
Definition: v8-extension.h:40
bool auto_enable()
Definition: v8-extension.h:43
void set_auto_enable(bool value)
Definition: v8-extension.h:42
const char * name() const
Definition: v8-extension.h:35
Definition: v8-isolate.h:261
Definition: v8-local-handle.h:266
Definition: v8-primitive.h:411
Definition: libplatform.h:15
void RegisterExtension(std::unique_ptr< Extension >)
#define V8_EXPORT
Definition: v8config.h:793