cef_extension_handler_t.get_extension_resource

Called to retrieve an extension resource that would normally be loaded from disk (e.g. if a file parameter is specified to chrome.tabs.executeScript). |extension| and |browser| are the source of the resource request. |file| is the requested relative file path. To handle the resource request return true (1) and execute |callback| either synchronously or asynchronously. For the default behavior which reads the resource from the extension directory on disk return false (0). Localization substitutions will not be applied to resources handled via this function.

struct cef_extension_handler_t
extern (System)
int function(cef_extension_handler_t* self, cef_extension_t* extension, cef_browser_t* browser, const(cef_string_t)* file, cef_get_extension_resource_callback_t* callback) nothrow get_extension_resource;

Meta