OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_TASK_RUNNER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_TASK_RUNNER_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 |
| 10 namespace base { |
| 11 class SingleThreadTaskRunner; |
| 12 } |
| 13 |
| 14 namespace extensions { |
| 15 |
| 16 // TODO(devlin): Similar to below, it's possible that SQL doesn't like running |
| 17 // on multiple threads. We *might* be able to change this to a |
| 18 // SequencedTaskRunner, but more investigation is needed. |
| 19 const scoped_refptr<base::SingleThreadTaskRunner> GetActivityLogTaskRunner(); |
| 20 |
| 21 // TODO(devlin): It would be great to remove this, but we can't create a valid |
| 22 // SQL database in unittests using the normal ActivityLogTaskRunner. Might be |
| 23 // related to https://crbug.com/739945. |
| 24 void SetActivityLogTaskRunnerForTesting( |
| 25 base::SingleThreadTaskRunner* task_runner); |
| 26 |
| 27 } // namespace extensions |
| 28 |
| 29 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_TASK_RUNNER_H_ |
OLD | NEW |