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

Side by Side Diff: chrome/browser/extensions/activity_log/activity_log_task_runner.h

Issue 2980503002: [Extensions][TaskScheduler] Update ActivityLog for scheduling migration (Closed)
Patch Set: . Created 3 years, 4 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698