Chromium Code Reviews| Index: chrome/browser/extensions/api/storage/backend_task_runner.h |
| diff --git a/chrome/browser/extensions/api/storage/backend_task_runner.h b/chrome/browser/extensions/api/storage/backend_task_runner.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..50c60e08d063ee11435562ed596b64a106e40811 |
| --- /dev/null |
| +++ b/chrome/browser/extensions/api/storage/backend_task_runner.h |
| @@ -0,0 +1,18 @@ |
| +// 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. |
| + |
| +#ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_BACKEND_TASK_RUNNER_H_ |
| +#define CHROME_BROWSER_EXTENSIONS_API_STORAGE_BACKEND_TASK_RUNNER_H_ |
| + |
| +#include "base/memory/ref_counted.h" |
| +#include "base/sequenced_task_runner.h" |
| + |
| +namespace extensions { |
| + |
| +// Gets the singleton task runner for running SyncStorageBackend on. |
| +scoped_refptr<base::SequencedTaskRunner> GetBackendTaskRunner(); |
|
Devlin
2017/06/21 19:19:31
Since this is currently only used for SyncStorageB
stanisc
2017/06/22 22:34:16
SyncStorageBackend seems like a wrong place. I thi
stanisc
2017/06/23 21:00:23
I'll leave it this way and re-evaluate in the next
Devlin
2017/06/23 21:23:35
I think #3 (preferring AssertIOAllowed) is probabl
|
| + |
| +} // namespace extensions |
| + |
| +#endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_BACKEND_TASK_RUNNER_H_ |