blob: fe95c7cf22a4fac05eafb8250998420cee2d47a5 [file] [log] [blame]
// 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 "base/memory/ref_counted.h"
namespace base {
class SingleThreadTaskRunner;
namespace extensions {
// TODO(devlin): Similar to below, it's possible that SQL doesn't like running
// on multiple threads. We *might* be able to change this to a
// SequencedTaskRunner, but more investigation is needed.
const scoped_refptr<base::SingleThreadTaskRunner> GetActivityLogTaskRunner();
// TODO(devlin): It would be great to remove this, but we can't create a valid
// SQL database in unittests using the normal ActivityLogTaskRunner. Might be
// related to
void SetActivityLogTaskRunnerForTesting(
base::SingleThreadTaskRunner* task_runner);
} // namespace extensions