blob: 7b8e21ef0ce1dc53489af8880227d0dae5c186dd [file] [log] [blame]
// Copyright 2016 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 COMPONENTS_LEVELDB_PROTO_OPTIONS_H_
#define COMPONENTS_LEVELDB_PROTO_OPTIONS_H_
#include "base/files/file_path.h"
#include "third_party/leveldatabase/env_chromium.h"
namespace leveldb_proto {
struct Options {
Options(const base::FilePath& database_dir,
leveldb_env::SharedReadCache shared_cache,
size_t write_buffer_size = 0)
: database_dir(database_dir),
shared_cache(shared_cache),
write_buffer_size(write_buffer_size) {}
base::FilePath database_dir;
leveldb_env::SharedReadCache shared_cache;
size_t write_buffer_size;
};
} // namespace leveldb_proto
#endif // COMPONENTS_LEVELDB_PROTO_OPTIONS_H_