return download_item_->GetSuggestedFilename();
}
+std::string DownloadItem::GetContentDisposition() {
+ return download_item_->GetContentDisposition();
+}
+
void DownloadItem::Pause() {
download_item_->Pause();
}
.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) {
### `downloadItem.getReceivedBytes()`
Returns a `Integer` represents the received bytes of the download item.
+
+### `downloadItem.getContentDisposition()`
+
+Returns a `String` represents the Content-Disposition field from the response
+header.