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

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

Issue 379563006: Merge 281089 "Include the latest binary download info in safe br..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2062/src/
Patch Set: Created 6 years, 5 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/common/BUILD.gn ('k') | chrome/common/safe_browsing/download_protection_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/safe_browsing/download_protection_util.h
===================================================================
--- chrome/common/safe_browsing/download_protection_util.h (revision 281829)
+++ chrome/common/safe_browsing/download_protection_util.h (working copy)
@@ -5,6 +5,8 @@
#ifndef CHROME_COMMON_SAFE_BROWSING_DOWNLOAD_PROTECTION_UTIL_H_
#define CHROME_COMMON_SAFE_BROWSING_DOWNLOAD_PROTECTION_UTIL_H_
+#include "chrome/common/safe_browsing/csd.pb.h"
+
namespace base {
class FilePath;
}
@@ -18,6 +20,10 @@
// 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 IsBinaryFile() above.
+ClientDownloadRequest::DownloadType GetDownloadType(const base::FilePath& file);
+
} // namespace download_protection_util
} // namespace safe_browsing
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/common/safe_browsing/download_protection_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698