value_store_task_runner.h 677 B

12345678910111213141516171819202122
  1. // Copyright 2021 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. #ifndef COMPONENTS_VALUE_STORE_VALUE_STORE_TASK_RUNNER_H_
  5. #define COMPONENTS_VALUE_STORE_VALUE_STORE_TASK_RUNNER_H_
  6. #include "base/memory/ref_counted.h"
  7. namespace base {
  8. class SequencedTaskRunner;
  9. }
  10. namespace value_store {
  11. // Returns the singleton instance of the task runner to be used for value store
  12. // tasks that read, modify, or delete files.
  13. scoped_refptr<base::SequencedTaskRunner> GetValueStoreTaskRunner();
  14. } // namespace value_store
  15. #endif // COMPONENTS_VALUE_STORE_VALUE_STORE_TASK_RUNNER_H_