Allow an empty |download_path| argument to CefBeforeDownloadCallback::Continue (issue #516).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@716 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
421001ba9d
commit
0c81037621
|
@ -55,7 +55,7 @@ class CefBeforeDownloadCallback : public virtual CefBase {
|
||||||
// suggested name and the default temp directory. Set |show_dialog| to true
|
// suggested name and the default temp directory. Set |show_dialog| to true
|
||||||
// if you do wish to show the default "Save As" dialog.
|
// if you do wish to show the default "Save As" dialog.
|
||||||
///
|
///
|
||||||
/*--cef(capi_name=cont)--*/
|
/*--cef(capi_name=cont,optional_param=download_path)--*/
|
||||||
virtual void Continue(const CefString& download_path, bool show_dialog) =0;
|
virtual void Continue(const CefString& download_path, bool show_dialog) =0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -23,10 +23,7 @@ void CEF_CALLBACK before_download_callback_cont(
|
||||||
DCHECK(self);
|
DCHECK(self);
|
||||||
if (!self)
|
if (!self)
|
||||||
return;
|
return;
|
||||||
// Verify param: download_path; type: string_byref_const
|
// Unverified params: download_path
|
||||||
DCHECK(download_path);
|
|
||||||
if (!download_path)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Execute
|
// Execute
|
||||||
CefBeforeDownloadCallbackCppToC::Get(self)->Continue(
|
CefBeforeDownloadCallbackCppToC::Get(self)->Continue(
|
||||||
|
|
|
@ -22,10 +22,7 @@ void CefBeforeDownloadCallbackCToCpp::Continue(const CefString& download_path,
|
||||||
|
|
||||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||||
|
|
||||||
// Verify param: download_path; type: string_byref_const
|
// Unverified params: download_path
|
||||||
DCHECK(!download_path.empty());
|
|
||||||
if (download_path.empty())
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Execute
|
// Execute
|
||||||
struct_->cont(struct_,
|
struct_->cont(struct_,
|
||||||
|
|
Loading…
Reference in New Issue