Add donwloadItem.getContentDisposition() API.

This commit is contained in:
Haojian Wu 2015-09-21 09:38:38 +08:00
parent 4391e81dfe
commit 997ac91fe0
3 changed files with 12 additions and 1 deletions

View file

@ -71,6 +71,10 @@ std::string DownloadItem::GetSuggestedFilename() {
return download_item_->GetSuggestedFilename();
}
std::string DownloadItem::GetContentDisposition() {
return download_item_->GetContentDisposition();
}
void DownloadItem::Pause() {
download_item_->Pause();
}
@ -94,7 +98,8 @@ mate::ObjectTemplateBuilder DownloadItem::GetObjectTemplateBuilder(
.SetMethod("getURL", &DownloadItem::GetURL)
.SetMethod("getMimeType", &DownloadItem::GetMimeType)
.SetMethod("hasUserGesture", &DownloadItem::HasUserGesture)
.SetMethod("getSuggestedFilename", &DownloadItem::GetSuggestedFilename);
.SetMethod("getSuggestedFilename", &DownloadItem::GetSuggestedFilename)
.SetMethod("getContentDisposition", &DownloadItem::GetContentDisposition);
}
void SetWrapDownloadItem(const WrapDownloadItemCallback& callback) {