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

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

Issue 2887933002: Remove usage of SequencedWorkerPool::GetNamedSequenceToken from ChromeDownloadManagerDelegate. (Closed)
Patch Set: Created 3 years, 7 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 | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8a26132c3c048e214f449bff83c32039aeef871c..dc33ded92219f3b9caac8020f6b184369bc78be3 100644
--- a/content/public/browser/download_manager_delegate.h
+++ b/content/public/browser/download_manager_delegate.h
@@ -64,7 +64,7 @@ using DownloadTargetCallback =
using DownloadOpenDelayedCallback = base::Callback<void(bool)>;
// Called with the result of CheckForFileExistence().
-using CheckForFileExistenceCallback = base::Callback<void(bool result)>;
+using CheckForFileExistenceCallback = base::OnceCallback<void(bool result)>;
using DownloadIdCallback = base::Callback<void(uint32_t)>;
@@ -152,9 +152,8 @@ class CONTENT_EXPORT DownloadManagerDelegate {
virtual void ShowDownloadInShell(DownloadItem* download) {}
// Checks whether a downloaded file still exists.
- virtual void CheckForFileExistence(
- DownloadItem* download,
- const CheckForFileExistenceCallback& callback) {}
+ virtual void CheckForFileExistence(DownloadItem* download,
+ CheckForFileExistenceCallback callback) {}
// Return a GUID string used for identifying the application to the system AV
// function for scanning downloaded files. If no GUID is provided or if the
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698