91 *newc = (
struct content *) script;
116 "application/javascript",
117 "application/ecmascript",
118 "application/x-javascript",
void content_destroy(struct content *c)
Destroy and free a content.
void content_set_done(struct content *c)
Put a content in status CONTENT_STATUS_DONE.
nserror content__init(struct content *c, const content_handler *handler, lwc_string *imime_type, const struct http_parameter *params, llcache_handle *llcache, const char *fallback_charset, bool quirks)
nserror content__clone(const struct content *c, struct content *nc)
Clone a content's data members.
void content_set_ready(struct content *c)
Put a content in status CONTENT_STATUS_READY and unlock the content.
Protected interface to Content handling.
content_type
The type of a content.
nserror
Enumeration of error codes.
@ NSERROR_NOMEM
Memory exhaustion.
struct javascript_content javascript_content
static bool javascript_convert(struct content *c)
static content_type javascript_content_type(void)
static const content_handler javascript_content_handler
static nserror javascript_create(const content_handler *handler, lwc_string *imime_type, const struct http_parameter *params, llcache_handle *llcache, const char *fallback_charset, bool quirks, struct content **c)
static nserror javascript_clone(const struct content *old, struct content **newc)
static void javascript_destroy(struct content *c)
static const char * javascript_types[]
CONTENT_FACTORY_REGISTER_TYPES(javascript, javascript_types, javascript_content_handler)
High-level resource cache interface.
static struct llcache_s * llcache
low level cache state
Localised message support (interface).
Interface to utility string handling.
Content operation function table.
nserror(* create)(const struct content_handler *handler, lwc_string *imime_type, const struct http_parameter *params, struct llcache_handle *llcache, const char *fallback_charset, bool quirks, struct content **c)
Content which corresponds to a single URL.
bool quirks
Content is in quirks mode.
char * fallback_charset
Fallback charset, or NULL.
const struct content_handler * handler
Handler for content.
Representation of an HTTP parameter.
Handle to low-level cache object.
Interface to a number of general purpose functionality.