Chromium Embedded Framework (CEF)  116.0.6+gc182ee2+chromium-116.0.5845.10
CefDownloadItem Class Referenceabstract

Class used to represent a download item. More...

#include "include/cef_download_item.h"

Inheritance diagram for CefDownloadItem:
CefBaseRefCounted

Public Member Functions

virtual bool IsValid ()=0
 Returns true if this object is valid. More...
 
virtual bool IsInProgress ()=0
 Returns true if the download is in progress. More...
 
virtual bool IsComplete ()=0
 Returns true if the download is complete. More...
 
virtual bool IsCanceled ()=0
 Returns true if the download has been canceled. More...
 
virtual bool IsInterrupted ()=0
 Returns true if the download has been interrupted. More...
 
virtual cef_download_interrupt_reason_t GetInterruptReason ()=0
 Returns the most recent interrupt reason. More...
 
virtual int64_t GetCurrentSpeed ()=0
 Returns a simple speed estimate in bytes/s. More...
 
virtual int GetPercentComplete ()=0
 Returns the rough percent complete or -1 if the receive total size is unknown. More...
 
virtual int64_t GetTotalBytes ()=0
 Returns the total number of bytes. More...
 
virtual int64_t GetReceivedBytes ()=0
 Returns the number of received bytes. More...
 
virtual CefBaseTime GetStartTime ()=0
 Returns the time that the download started. More...
 
virtual CefBaseTime GetEndTime ()=0
 Returns the time that the download ended. More...
 
virtual CefString GetFullPath ()=0
 Returns the full path to the downloaded or downloading file. More...
 
virtual uint32_t GetId ()=0
 Returns the unique identifier for this download. More...
 
virtual CefString GetURL ()=0
 Returns the URL. More...
 
virtual CefString GetOriginalUrl ()=0
 Returns the original URL before any redirections. More...
 
virtual CefString GetSuggestedFileName ()=0
 Returns the suggested file name. More...
 
virtual CefString GetContentDisposition ()=0
 Returns the content disposition. More...
 
virtual CefString GetMimeType ()=0
 Returns the mime type. More...
 
- Public Member Functions inherited from CefBaseRefCounted
virtual void AddRef () const =0
 Called to increment the reference count for the object. More...
 
virtual bool Release () const =0
 Called to decrement the reference count for the object. More...
 
virtual bool HasOneRef () const =0
 Returns true if the reference count is 1. More...
 
virtual bool HasAtLeastOneRef () const =0
 Returns true if the reference count is at least 1. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CefBaseRefCounted
virtual ~CefBaseRefCounted ()
 

Detailed Description

Class used to represent a download item.

Member Function Documentation

◆ GetContentDisposition()

virtual CefString CefDownloadItem::GetContentDisposition ( )
pure virtual

Returns the content disposition.

◆ GetCurrentSpeed()

virtual int64_t CefDownloadItem::GetCurrentSpeed ( )
pure virtual

Returns a simple speed estimate in bytes/s.

◆ GetEndTime()

virtual CefBaseTime CefDownloadItem::GetEndTime ( )
pure virtual

Returns the time that the download ended.

◆ GetFullPath()

virtual CefString CefDownloadItem::GetFullPath ( )
pure virtual

Returns the full path to the downloaded or downloading file.

◆ GetId()

virtual uint32_t CefDownloadItem::GetId ( )
pure virtual

Returns the unique identifier for this download.

◆ GetInterruptReason()

virtual cef_download_interrupt_reason_t CefDownloadItem::GetInterruptReason ( )
pure virtual

Returns the most recent interrupt reason.

◆ GetMimeType()

virtual CefString CefDownloadItem::GetMimeType ( )
pure virtual

Returns the mime type.

◆ GetOriginalUrl()

virtual CefString CefDownloadItem::GetOriginalUrl ( )
pure virtual

Returns the original URL before any redirections.

◆ GetPercentComplete()

virtual int CefDownloadItem::GetPercentComplete ( )
pure virtual

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

◆ GetReceivedBytes()

virtual int64_t CefDownloadItem::GetReceivedBytes ( )
pure virtual

Returns the number of received bytes.

◆ GetStartTime()

virtual CefBaseTime CefDownloadItem::GetStartTime ( )
pure virtual

Returns the time that the download started.

◆ GetSuggestedFileName()

virtual CefString CefDownloadItem::GetSuggestedFileName ( )
pure virtual

Returns the suggested file name.

◆ GetTotalBytes()

virtual int64_t CefDownloadItem::GetTotalBytes ( )
pure virtual

Returns the total number of bytes.

◆ GetURL()

virtual CefString CefDownloadItem::GetURL ( )
pure virtual

Returns the URL.

◆ IsCanceled()

virtual bool CefDownloadItem::IsCanceled ( )
pure virtual

Returns true if the download has been canceled.

◆ IsComplete()

virtual bool CefDownloadItem::IsComplete ( )
pure virtual

Returns true if the download is complete.

◆ IsInProgress()

virtual bool CefDownloadItem::IsInProgress ( )
pure virtual

Returns true if the download is in progress.

◆ IsInterrupted()

virtual bool CefDownloadItem::IsInterrupted ( )
pure virtual

Returns true if the download has been interrupted.

◆ IsValid()

virtual bool CefDownloadItem::IsValid ( )
pure virtual

Returns true if this object is valid.

Do not call any other methods if this function returns false.


The documentation for this class was generated from the following file: