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

Unified Diff: content/public/browser/download_manager_delegate.h

Issue 2674973003: Adding a DownloadRestrictions group policy. (Closed)
Patch Set: Patch set 5 + rebase Created 3 years, 10 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: content/public/browser/download_manager_delegate.h
diff --git a/content/public/browser/download_manager_delegate.h b/content/public/browser/download_manager_delegate.h
index 2c91638b118fddf902bb49f7eb12853cfc9f8481..116bf4f61ef9ca1f6db820d332d1a634f9f70264 100644
--- a/content/public/browser/download_manager_delegate.h
+++ b/content/public/browser/download_manager_delegate.h
@@ -7,6 +7,8 @@
#include <stdint.h>
+#include <string>
+
#include "base/callback.h"
#include "base/files/file_path.h"
#include "base/logging.h"
@@ -150,6 +152,9 @@ class CONTENT_EXPORT DownloadManagerDelegate {
// This GUID is only used on Windows.
virtual std::string ApplicationClientIdForFileScanning() const;
+ // Identifie whether all downloads should be blocked, e.g., by group policy.
+ virtual bool ShouldBlockAllDownloads() const;
+
protected:
virtual ~DownloadManagerDelegate();
};

Powered by Google App Engine
This is Rietveld 408576698