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 TaskRunner; | |
12 } | |
13 | |
14 namespace extensions { | |
15 | |
16 const scoped_refptr<base::TaskRunner> GetActivityLogTaskRunner(); | |
gab
2017/07/20 16:26:43
Use base::SequencedTaskRunner in interface and imp
Devlin
2017/07/27 13:41:19
Done.
| |
17 | |
18 // TODO(devlin): It would be great to remove this, but we can't create a valid | |
19 // SQL database in unittests using the normal ActivityLogTaskRunner. Might be | |
20 // related to https://crbug.com/739945. | |
21 void SetActivityLogTaskRunnerForTesting(base::TaskRunner* task_runner); | |
22 | |
23 } // namespace extensions | |
24 | |
25 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_TASK_RUNNER_H_ | |
OLD | NEW |