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

Unified Diff: chrome/browser/safe_browsing/download_protection_service.h

Issue 8468020: Propagate the SafeBrowsing download protection verdict to the DownloadItem. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Add missing file and fix some unit-tests Created 9 years, 1 month 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
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 fc33a1a847e5efe6dfe01ec3756197a48afa867f..7afb5b0e48198f59087e8a27ccedcc0aba937a84 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

Powered by Google App Engine
This is Rietveld 408576698