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

Unified Diff: chrome/common/safe_browsing/download_protection_util.h

Issue 1979153002: Use FileTypePolicies for is_archive and is_supported classifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split_by_platform
Patch Set: rebase Created 4 years, 7 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
Index: chrome/common/safe_browsing/download_protection_util.h
diff --git a/chrome/common/safe_browsing/download_protection_util.h b/chrome/common/safe_browsing/download_protection_util.h
index f07181c7050883154d44459eae61173919ebcdf7..ff01cc56ca2f1c30053d94a0a48581fe94f2030e 100644
--- a/chrome/common/safe_browsing/download_protection_util.h
+++ b/chrome/common/safe_browsing/download_protection_util.h
@@ -11,25 +11,10 @@
namespace safe_browsing {
namespace download_protection_util {
-// Returns true if the given file is a supported binary file type.
-bool IsSupportedBinaryFile(const base::FilePath& file);
-
-// Returns true if the given file is a supported archive file type.
-bool IsArchiveFile(const base::FilePath& file);
-
// Returns the DownloadType of the file at |path|. This function is only valid
// for paths that satisfy IsSupportedBinaryFile() above.
ClientDownloadRequest::DownloadType GetDownloadType(const base::FilePath& file);
-// Returns the extension of the file at |path|.
-const base::FilePath::StringType GetFileExtension(const base::FilePath& file);
-
-// The maximum value returned by GetSBClientDownloadExtensionValueForUMA() + 1.
-extern const int kSBClientDownloadExtensionsMax;
-
-// SBClientDownloadExtensions UMA enum value corresponding to |file|.
-int GetSBClientDownloadExtensionValueForUMA(const base::FilePath& file);
-
} // namespace download_protection_util
} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698