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

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

Issue 2674973003: Adding a DownloadRestrictions group policy. (Closed)
Patch Set: Some oups.... :-) Created 3 years, 6 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 | « no previous file | chrome/browser/download/chrome_download_manager_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/chrome_download_manager_delegate.h
diff --git a/chrome/browser/download/chrome_download_manager_delegate.h b/chrome/browser/download/chrome_download_manager_delegate.h
index 5d9fd8a83220ade0db22816b6bc158445d7ebd94..2eaf5f40627f1b466475d36b904a64daf8c7c494 100644
--- a/chrome/browser/download/chrome_download_manager_delegate.h
+++ b/chrome/browser/download/chrome_download_manager_delegate.h
@@ -164,6 +164,10 @@ class ChromeDownloadManagerDelegate
// Returns true if |path| should open in the browser.
bool IsOpenInBrowserPreferreredForFile(const base::FilePath& path);
+ // Return true if the downloaded file should be blocked based on the current
+ // download restriction pref and |danger_type|.
+ bool ShouldBlockFile(content::DownloadDangerType danger_type) const;
+
Profile* profile_;
uint32_t next_download_id_;
IdCallbackVector id_callbacks_;
« no previous file with comments | « no previous file | chrome/browser/download/chrome_download_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698