Index: chrome/browser/safe_browsing/download_protection_service.h |
diff --git a/chrome/browser/safe_browsing/download_protection_service.h b/chrome/browser/safe_browsing/download_protection_service.h |
index 60af4a27770f2968374696256362ace1893f8743..dd24436b0d1d66a533474f024634c37b8eb21104 100644 |
--- a/chrome/browser/safe_browsing/download_protection_service.h |
+++ b/chrome/browser/safe_browsing/download_protection_service.h |
@@ -86,6 +86,11 @@ class DownloadProtectionService { |
virtual void CheckDownloadUrl(const DownloadInfo& info, |
const CheckDownloadCallback& callback); |
+ // Returns true iff the given filename has an extension that is supported |
+ // by this service. In other words: this method returns true if it can |
+ // protect users against files with that particular extension. |
+ bool IsSupportedFileType(const FilePath& filename) const; |
+ |
// Enables or disables the service. This is usually called by the |
// SafeBrowsingService, which tracks whether any profile uses these services |
// at all. Disabling causes any pending and future requests to have their |