OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
| 10 #include <string> |
| 11 |
10 #include "base/callback.h" | 12 #include "base/callback.h" |
11 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
13 #include "base/time/time.h" | 15 #include "base/time/time.h" |
14 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
15 #include "content/public/browser/download_danger_type.h" | 17 #include "content/public/browser/download_danger_type.h" |
16 #include "content/public/browser/download_item.h" | 18 #include "content/public/browser/download_item.h" |
17 #include "content/public/browser/save_page_type.h" | 19 #include "content/public/browser/save_page_type.h" |
18 | 20 |
19 namespace content { | 21 namespace content { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 const CheckForFileExistenceCallback& callback) {} | 145 const CheckForFileExistenceCallback& callback) {} |
144 | 146 |
145 // Return a GUID string used for identifying the application to the system AV | 147 // Return a GUID string used for identifying the application to the system AV |
146 // function for scanning downloaded files. If no GUID is provided or if the | 148 // function for scanning downloaded files. If no GUID is provided or if the |
147 // provided GUID is invalid, then the appropriate quarantining will be | 149 // provided GUID is invalid, then the appropriate quarantining will be |
148 // performed manually without passing the download to the system AV function. | 150 // performed manually without passing the download to the system AV function. |
149 // | 151 // |
150 // This GUID is only used on Windows. | 152 // This GUID is only used on Windows. |
151 virtual std::string ApplicationClientIdForFileScanning() const; | 153 virtual std::string ApplicationClientIdForFileScanning() const; |
152 | 154 |
| 155 // Identifie whether all downloads should be blocked, e.g., by group policy. |
| 156 virtual bool ShouldBlockAllDownloads() const; |
| 157 |
153 protected: | 158 protected: |
154 virtual ~DownloadManagerDelegate(); | 159 virtual ~DownloadManagerDelegate(); |
155 }; | 160 }; |
156 | 161 |
157 } // namespace content | 162 } // namespace content |
158 | 163 |
159 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ | 164 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ |
OLD | NEW |