blob: 77f1deb04c8dca76ab6fed30bbe733b932009b8b [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.
#ifndef EXTENSIONS_BROWSER_API_STORAGE_BACKEND_TASK_RUNNER_H_
#define EXTENSIONS_BROWSER_API_STORAGE_BACKEND_TASK_RUNNER_H_
#include "base/memory/ref_counted.h"
#include "base/task/sequenced_task_runner_forward.h"
namespace extensions {
// Gets the singleton task runner for running storage backend on.
scoped_refptr<base::SequencedTaskRunner> GetBackendTaskRunner();
// Verifies the the backend task runner above runs tasks in the current
// sequence.
bool IsOnBackendSequence();
} // namespace extensions
#endif // EXTENSIONS_BROWSER_API_STORAGE_BACKEND_TASK_RUNNER_H_