blob: 0778ade68a69024277f59736f0d1bba57cef35c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// 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"
namespace leveldb_proto {
struct Options {
Options(const base::FilePath& database_dir)
: database_dir(database_dir), write_buffer_size(0), read_cache_size(0) {}
Options(const base::FilePath& database_dir,
size_t write_buffer_size,
size_t read_cache_size)
: database_dir(database_dir),
write_buffer_size(write_buffer_size),
read_cache_size(read_cache_size) {}
base::FilePath database_dir;
size_t write_buffer_size;
size_t read_cache_size;
};
} // namespace leveldb_proto
#endif // COMPONENTS_LEVELDB_PROTO_OPTIONS_H_
|