#include "components/leveldb_proto/public/proto_database_provider.h"
#include <memory>
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/synchronization/lock.h"
#include "base/task/sequenced_task_runner.h"
#include "components/leveldb_proto/internal/shared_proto_database.h"
namespace leveldb_proto {
namespace {
const char kSharedProtoDatabaseClientName[] = …;
const char kSharedProtoDatabaseDirectory[] = …;
}
ProtoDatabaseProvider::ProtoDatabaseProvider(const base::FilePath& profile_dir,
bool is_in_memory)
: … { … }
ProtoDatabaseProvider::~ProtoDatabaseProvider() { … }
void ProtoDatabaseProvider::GetSharedDBInstance(
GetSharedDBInstanceCallback callback,
scoped_refptr<base::SequencedTaskRunner> callback_task_runner) { … }
void ProtoDatabaseProvider::SetSharedDBDeleteObsoleteDelayForTesting(
base::TimeDelta delay) { … }
}