cef_download_item_t

Structure used to represent a download item.

version(cef && embedded_cef_bindings)
extern (C)
struct cef_download_item_t {
extern (System)
int function(cef_download_item_t* self) nothrow is_valid;
extern (System)
int function(cef_download_item_t* self) nothrow is_in_progress;
extern (System)
int function(cef_download_item_t* self) nothrow is_complete;
extern (System)
int function(cef_download_item_t* self) nothrow is_canceled;
extern (System)
int function(cef_download_item_t* self) nothrow is_interrupted;
}

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

get_content_disposition
cef_string_userfree_t function(cef_download_item_t* self) nothrow get_content_disposition;

Returns the content disposition.

get_current_speed
long function(cef_download_item_t* self) nothrow get_current_speed;

Returns a simple speed estimate in bytes/s.

get_end_time
cef_basetime_t function(cef_download_item_t* self) nothrow get_end_time;

Returns the time that the download ended.

get_full_path
cef_string_userfree_t function(cef_download_item_t* self) nothrow get_full_path;

Returns the full path to the downloaded or downloading file.

get_id
uint function(cef_download_item_t* self) nothrow get_id;

Returns the unique identifier for this download.

get_interrupt_reason
cef_download_interrupt_reason_t function(cef_download_item_t* self) nothrow get_interrupt_reason;

Returns the most recent interrupt reason.

get_mime_type
cef_string_userfree_t function(cef_download_item_t* self) nothrow get_mime_type;

Returns the mime type.

get_original_url
cef_string_userfree_t function(cef_download_item_t* self) nothrow get_original_url;

Returns the original URL before any redirections.

get_percent_complete
int function(cef_download_item_t* self) nothrow get_percent_complete;

Returns the rough percent complete or -1 if the receive total size is unknown.

get_received_bytes
long function(cef_download_item_t* self) nothrow get_received_bytes;

Returns the number of received bytes.

get_start_time
cef_basetime_t function(cef_download_item_t* self) nothrow get_start_time;

Returns the time that the download started.

get_suggested_file_name
cef_string_userfree_t function(cef_download_item_t* self) nothrow get_suggested_file_name;

Returns the suggested file name.

get_total_bytes
long function(cef_download_item_t* self) nothrow get_total_bytes;

Returns the total number of bytes.

get_url
cef_string_userfree_t function(cef_download_item_t* self) nothrow get_url;

Returns the URL.

Meta