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

Unified Diff: content/browser/download/download_task_runner.h

Issue 2890853002: Downloads: replace BrowserThread::FILE with task scheduler. (Closed)
Patch Set: Add a missing mock expectation. Created 3 years, 6 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
Index: content/browser/download/download_task_runner.h
diff --git a/content/browser/download/download_task_runner.h b/content/browser/download/download_task_runner.h
new file mode 100644
index 0000000000000000000000000000000000000000..3bca34ae99d31db9b196d6143ba2866620e23b67
--- /dev/null
+++ b/content/browser/download/download_task_runner.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_TASK_RUNNER_H_
+#define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_TASK_RUNNER_H_
+
+#include "base/single_thread_task_runner.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+// Returns the task runner used to save files and do other blocking operations.
+CONTENT_EXPORT scoped_refptr<base::SingleThreadTaskRunner>
gab 2017/06/21 19:42:24 What's the reason this couldn't be a SequencedTask
Sigurður Ásgeirsson 2017/06/22 14:50:09 There was something that barfed on base::DelayTime
gab 2017/06/22 16:03:59 Yes base::Timer is now sequence-friendly
Sigurður Ásgeirsson 2017/06/22 18:47:28 Acknowledged.
+GetDownloadTaskRunner();
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_TASK_RUNNER_H_

Powered by Google App Engine
This is Rietveld 408576698