OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_LEVELDB_PROTO_LEVELDB_DATABASE_H_ | 5 #ifndef COMPONENTS_LEVELDB_PROTO_LEVELDB_DATABASE_H_ |
6 #define COMPONENTS_LEVELDB_PROTO_LEVELDB_DATABASE_H_ | 6 #define COMPONENTS_LEVELDB_PROTO_LEVELDB_DATABASE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "base/strings/string_split.h" | 14 #include "base/strings/string_split.h" |
14 #include "base/threading/thread_collision_warner.h" | 15 #include "base/threading/thread_collision_warner.h" |
15 | 16 |
16 namespace base { | 17 namespace base { |
17 class HistogramBase; | 18 class HistogramBase; |
18 } // namespace base | 19 } // namespace base |
19 | 20 |
20 namespace leveldb { | 21 namespace leveldb { |
21 class DB; | 22 class DB; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 scoped_ptr<leveldb::Env> env_; | 55 scoped_ptr<leveldb::Env> env_; |
55 scoped_ptr<leveldb::DB> db_; | 56 scoped_ptr<leveldb::DB> db_; |
56 base::HistogramBase* open_histogram_; | 57 base::HistogramBase* open_histogram_; |
57 | 58 |
58 DISALLOW_COPY_AND_ASSIGN(LevelDB); | 59 DISALLOW_COPY_AND_ASSIGN(LevelDB); |
59 }; | 60 }; |
60 | 61 |
61 } // namespace leveldb_proto | 62 } // namespace leveldb_proto |
62 | 63 |
63 #endif // COMPONENTS_LEVELDB_PROTO_LEVELDB_DATABASE_H_ | 64 #endif // COMPONENTS_LEVELDB_PROTO_LEVELDB_DATABASE_H_ |
OLD | NEW |