Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1117)

Unified Diff: chrome/browser/download/download_item_model.h

Issue 2219953004: Refactor download image-MIME-type-detection code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add more tests Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/download/download_commands.cc ('k') | chrome/browser/download/download_item_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_item_model.h
diff --git a/chrome/browser/download/download_item_model.h b/chrome/browser/download/download_item_model.h
index d5f0b45db0fdf7548c2d8a6a9c87a93c91e4149d..5fe5751dc8fa5269eb7e6f8e60db473ddd086909 100644
--- a/chrome/browser/download/download_item_model.h
+++ b/chrome/browser/download/download_item_model.h
@@ -91,6 +91,10 @@ class DownloadItemModel {
// Implies IsDangerous() and MightBeMalicious().
bool IsMalicious() const;
+ // Does this download have a MIME type (either explicit or inferred from its
+ // extension) suggesting that it is a supported image type?
+ bool HasSupportedImageMimeType() const;
+
// Is safe browsing download feedback feature available for this download?
bool ShouldAllowDownloadFeedback() const;
« no previous file with comments | « chrome/browser/download/download_commands.cc ('k') | chrome/browser/download/download_item_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698