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

Unified Diff: chrome/browser/download/download_target_determiner.h

Issue 1982723002: Use FileTypePolicies for download danger classifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_policies
Patch Set: Fix bad 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/browser/download/download_target_determiner.h
diff --git a/chrome/browser/download/download_target_determiner.h b/chrome/browser/download/download_target_determiner.h
index 7e6cb877adfea32ef9c14fa2bc11f3553fbc95b1..f96e79cf9549c3474d072c8f2b13dc37664627fb 100644
--- a/chrome/browser/download/download_target_determiner.h
+++ b/chrome/browser/download/download_target_determiner.h
@@ -16,6 +16,7 @@
#include "chrome/browser/download/download_path_reservation_tracker.h"
#include "chrome/browser/download/download_target_determiner_delegate.h"
#include "chrome/browser/download/download_target_info.h"
+#include "chrome/common/safe_browsing/download_file_types.pb.h"
#include "content/public/browser/download_danger_type.h"
#include "content/public/browser/download_item.h"
#include "content/public/browser/download_manager_delegate.h"
@@ -298,7 +299,7 @@ class DownloadTargetDeterminer
//
// If |require_explicit_consent| is non-null then the pointed bool will be set
// to true if the download requires explicit user consent.
- download_util::DownloadDangerLevel GetDangerLevel(
+ safe_browsing::DownloadFileType::DangerLevel GetDangerLevel(
PriorVisitsToReferrer visits) const;
// content::DownloadItem::Observer
@@ -311,7 +312,7 @@ class DownloadTargetDeterminer
bool create_target_directory_;
DownloadPathReservationTracker::FilenameConflictAction conflict_action_;
content::DownloadDangerType danger_type_;
- download_util::DownloadDangerLevel danger_level_;
+ safe_browsing::DownloadFileType::DangerLevel danger_level_;
base::FilePath virtual_path_;
base::FilePath local_path_;
base::FilePath intermediate_path_;
« no previous file with comments | « chrome/browser/download/download_prefs_unittest.cc ('k') | chrome/browser/download/download_target_determiner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698