| 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 "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 const CheckForFileExistenceCallback& callback) {} | 157 const CheckForFileExistenceCallback& callback) {} |
| 158 | 158 |
| 159 // Return a GUID string used for identifying the application to the system AV | 159 // Return a GUID string used for identifying the application to the system AV |
| 160 // function for scanning downloaded files. If no GUID is provided or if the | 160 // function for scanning downloaded files. If no GUID is provided or if the |
| 161 // provided GUID is invalid, then the appropriate quarantining will be | 161 // provided GUID is invalid, then the appropriate quarantining will be |
| 162 // performed manually without passing the download to the system AV function. | 162 // performed manually without passing the download to the system AV function. |
| 163 // | 163 // |
| 164 // This GUID is only used on Windows. | 164 // This GUID is only used on Windows. |
| 165 virtual std::string ApplicationClientIdForFileScanning() const; | 165 virtual std::string ApplicationClientIdForFileScanning() const; |
| 166 | 166 |
| 167 // Records metrics about a drive-by PDF download. |
| 168 virtual void RecordDriveByPDFDownload() const {} |
| 169 |
| 167 protected: | 170 protected: |
| 168 virtual ~DownloadManagerDelegate(); | 171 virtual ~DownloadManagerDelegate(); |
| 169 }; | 172 }; |
| 170 | 173 |
| 171 } // namespace content | 174 } // namespace content |
| 172 | 175 |
| 173 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ | 176 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ |
| OLD | NEW |