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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 virtual void OpenDownload(DownloadItem* download) {} | 122 virtual void OpenDownload(DownloadItem* download) {} |
123 | 123 |
124 // Shows the download via the OS shell. | 124 // Shows the download via the OS shell. |
125 virtual void ShowDownloadInShell(DownloadItem* download) {} | 125 virtual void ShowDownloadInShell(DownloadItem* download) {} |
126 | 126 |
127 // Checks whether a downloaded file still exists. | 127 // Checks whether a downloaded file still exists. |
128 virtual void CheckForFileExistence( | 128 virtual void CheckForFileExistence( |
129 DownloadItem* download, | 129 DownloadItem* download, |
130 const CheckForFileExistenceCallback& callback) {} | 130 const CheckForFileExistenceCallback& callback) {} |
131 | 131 |
| 132 // Return a GUID string used for identifying the application to the |
| 133 // system AV function for scanning downloaded files. If an empty |
| 134 // or invalid GUID string is returned, no client identification |
| 135 // will be given to the AV function. |
| 136 virtual std::string ApplicationClientIdForFileScanning() const; |
| 137 |
132 protected: | 138 protected: |
133 virtual ~DownloadManagerDelegate(); | 139 virtual ~DownloadManagerDelegate(); |
134 }; | 140 }; |
135 | 141 |
136 } // namespace content | 142 } // namespace content |
137 | 143 |
138 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ | 144 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ |
OLD | NEW |