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_;
const String::ExternalOneByteStringResource * source() const
const char ** dependencies() const
int dependency_count() const
void operator=(const Extension &)=delete
Extension(const char *name, const char *source=nullptr, int dep_count=0, const char **deps=nullptr, int source_length=-1)
virtual Local< FunctionTemplate > GetNativeFunctionTemplate(Isolate *isolate, Local< String > name)
const char * name() const
void set_auto_enable(bool value)
Extension(const Extension &)=delete
size_t source_length() const
void V8_EXPORT RegisterExtension(std::unique_ptr< Extension >)