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

Unified Diff: content/public/browser/download_item.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 | « content/browser/download/mock_download_item_impl.h ('k') | content/public/test/fake_download_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/download_item.h
diff --git a/content/public/browser/download_item.h b/content/public/browser/download_item.h
index 9b6d933c3c485261eb7146a72f279259b78a1b0f..6b42720542d40b57823c8c38469cb737faa80251 100644
--- a/content/public/browser/download_item.h
+++ b/content/public/browser/download_item.h
@@ -78,10 +78,10 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
// How the final target path should be used.
enum TargetDisposition {
- TARGET_DISPOSITION_OVERWRITE, // Overwrite if the target already exists.
- TARGET_DISPOSITION_PROMPT // Prompt the user for the actual
- // target. Implies
- // TARGET_DISPOSITION_OVERWRITE.
+ TARGET_DISPOSITION_OVERWRITE, // Overwrite if the target already exists.
+ TARGET_DISPOSITION_PROMPT // Prompt the user for the actual
+ // target. Implies
+ // TARGET_DISPOSITION_OVERWRITE.
};
// Callback used with AcquireFileAndDeleteDownload().
@@ -435,8 +435,13 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
// Called if a check of the download contents was performed and the results of
// the test are available. This should only be called after AllDataSaved() is
- // true.
- virtual void OnContentCheckCompleted(DownloadDangerType danger_type) = 0;
+ // true. If |reason| is not DOWNLOAD_INTERRUPT_REASON_NONE, then the download
+ // file should be blocked.
+ // TODO(crbug.com/733291): Move DownloadInterruptReason out of here and add a
+ // new Interrupt method instead. Same for other methods supporting
+ // interruptions.
+ virtual void OnContentCheckCompleted(DownloadDangerType danger_type,
+ DownloadInterruptReason reason) = 0;
// Mark the download to be auto-opened when completed.
virtual void SetOpenWhenComplete(bool open) = 0;
« no previous file with comments | « content/browser/download/mock_download_item_impl.h ('k') | content/public/test/fake_download_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698