目录
2、重载OnBeforeDownload ,自定义下载默认路径
4、实现下载特定文件比如更新包时,直接下载,其它情况下跳出下载对话框功能
自定义下载路径,需要继承CefDownloadHandler,
一、CefDownloadHandler
class CefDownloadHandler : public virtual CefBaseRefCounted {
public:
///
// Called before a download begins. |suggested_name| is the suggested name for
// the download file. By default the download will be canceled. Execute
// |callback| either asynchronously or in this method to continue the download
// if desired. Do not keep a reference to |download_item| outside of this
// method.
///
/*--cef()--*/
virtual void OnBeforeDownlo