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

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

Issue 1613483003: [SafeBrowsing] Alternate extensions should also be subject to block list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment in histograms.xml Created 4 years, 11 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/browser/safe_browsing/unverified_download_policy.h
diff --git a/chrome/browser/safe_browsing/unverified_download_policy.h b/chrome/browser/safe_browsing/unverified_download_policy.h
index 170e92bfe8d57d2cb2d7342131813ee49c3f8dbb..e5001db575265726c67131e2ee29c744838eb7ea 100644
--- a/chrome/browser/safe_browsing/unverified_download_policy.h
+++ b/chrome/browser/safe_browsing/unverified_download_policy.h
@@ -5,14 +5,13 @@
#ifndef CHROME_BROWSER_SAFE_BROWSING_UNVERIFIED_DOWNLOAD_POLICY_H_
#define CHROME_BROWSER_SAFE_BROWSING_UNVERIFIED_DOWNLOAD_POLICY_H_
+#include <vector>
+
#include "base/callback_forward.h"
+#include "base/files/file_path.h"
class GURL;
-namespace base {
-class FilePath;
-}
-
namespace safe_browsing {
enum class UnverifiedDownloadPolicy { ALLOWED, DISALLOWED };
@@ -21,10 +20,13 @@ using UnverifiedDownloadCheckCompletionCallback =
base::Callback<void(UnverifiedDownloadPolicy)>;
// Invokes |callback| on the current thread with the effective download policy
-// for an unverified download of |file| by |requestor|.
+// for an unverified download of |file| by |requestor|. If it is possible for
+// the file to be downloaded with alternate file extensions, they should be
+// specified in |alternate_extensions|.
void CheckUnverifiedDownloadPolicy(
const GURL& requestor,
const base::FilePath& file,
+ const std::vector<base::FilePath::StringType>& alternate_extensions,
const UnverifiedDownloadCheckCompletionCallback& callback);
} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698