Chromium Code Reviews| Index: content/browser/download/download_task_runner.cc |
| diff --git a/content/browser/download/download_task_runner.cc b/content/browser/download/download_task_runner.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..210671bd0b1fccad27b12ceae56072f59683c3e1 |
| --- /dev/null |
| +++ b/content/browser/download/download_task_runner.cc |
| @@ -0,0 +1,23 @@ |
| +// Copyright 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. |
| + |
| +#include "content/browser/download/download_task_runner.h" |
| + |
| +#include "base/task_scheduler/lazy_task_runner.h" |
| + |
| +namespace content { |
| + |
| +namespace { |
| + |
| +base::LazySequencedTaskRunner g_download_task_runner = |
| + LAZY_SEQUENCED_TASK_RUNNER_INITIALIZER( |
| + (base::TaskTraits(base::MayBlock(), base::TaskPriority::BACKGROUND))); |
|
gab
2017/06/22 16:03:59
Can remove outer set of () here I think.
Sigurður Ásgeirsson
2017/06/22 18:47:28
Acknowledged.
|
| + |
| +} // namespace |
| + |
| +scoped_refptr<base::SequencedTaskRunner> GetDownloadTaskRunner() { |
| + return g_download_task_runner.Get(); |
| +} |
| + |
| +} // content |