mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add more robust download handler implementation (issue #156).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@155 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -42,9 +42,9 @@ v8::Handle<v8::Context> GetV8Context(WebKit::WebFrame* frame);
|
||||
// Clear all cached data.
|
||||
void ClearCache();
|
||||
|
||||
// Returns true if the specified 'Content-Disposition' header value represents
|
||||
// an attachment download. Also returns the file name.
|
||||
bool IsContentDispositionAttachment(const std::string& cd_header,
|
||||
std::string& file_name);
|
||||
// Returns true if the request represents a download based on
|
||||
// the supplied Content-Type and Content-Disposition headers.
|
||||
bool ShouldDownload(const std::string& content_disposition,
|
||||
const std::string& mime_type);
|
||||
|
||||
} // namespace webkit_glue
|
||||
|
Reference in New Issue
Block a user