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

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

Issue 2890853002: Downloads: replace BrowserThread::FILE with task scheduler. (Closed)
Patch Set: Address Avi's comments. Created 3 years, 5 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 | « content/public/browser/download_item.h ('k') | content/public/browser/download_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/download_manager.h
diff --git a/content/public/browser/download_manager.h b/content/public/browser/download_manager.h
index eecfe7a3a456e9b99bc8f029ed2af49430109426..8a2380203b1b14639c47c9c239fcad212f055065 100644
--- a/content/public/browser/download_manager.h
+++ b/content/public/browser/download_manager.h
@@ -34,7 +34,7 @@
#include "base/callback.h"
#include "base/files/file_path.h"
-#include "base/sequenced_task_runner_helpers.h"
+#include "base/sequenced_task_runner.h"
#include "base/time/time.h"
#include "content/public/browser/download_interrupt_reasons.h"
#include "content/public/browser/download_item.h"
@@ -55,6 +55,10 @@ class CONTENT_EXPORT DownloadManager : public base::SupportsUserData::Data {
public:
~DownloadManager() override {}
+ // Returns the task runner that's used for all download-related blocking
+ // tasks, such as file IO.
+ static scoped_refptr<base::SequencedTaskRunner> GetTaskRunner();
+
// Sets/Gets the delegate for this DownloadManager. The delegate has to live
// past its Shutdown method being called (by the DownloadManager).
virtual void SetDelegate(DownloadManagerDelegate* delegate) = 0;
« no previous file with comments | « content/public/browser/download_item.h ('k') | content/public/browser/download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698