| 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 EXTENSIONS_BROWSER_VALUE_STORE_LEVELDB_VALUE_STORE_H_ | 5 #ifndef EXTENSIONS_BROWSER_VALUE_STORE_LEVELDB_VALUE_STORE_H_ |
| 6 #define EXTENSIONS_BROWSER_VALUE_STORE_LEVELDB_VALUE_STORE_H_ | 6 #define EXTENSIONS_BROWSER_VALUE_STORE_LEVELDB_VALUE_STORE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 12 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/trace_event/memory_dump_provider.h" | 17 #include "base/trace_event/memory_dump_provider.h" |
| 15 #include "extensions/browser/value_store/value_store.h" | 18 #include "extensions/browser/value_store/value_store.h" |
| 16 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 19 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
| 17 | 20 |
| 18 namespace base { | 21 namespace base { |
| 19 class HistogramBase; | 22 class HistogramBase; |
| 20 } // namespace base | 23 } // namespace base |
| 21 | 24 |
| 22 // Value store area, backed by a leveldb database. | 25 // Value store area, backed by a leveldb database. |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 scoped_ptr<leveldb::DB> db_; | 114 scoped_ptr<leveldb::DB> db_; |
| 112 // Database is corrupt - restoration failed. | 115 // Database is corrupt - restoration failed. |
| 113 bool db_unrecoverable_; | 116 bool db_unrecoverable_; |
| 114 base::HistogramBase* open_histogram_; | 117 base::HistogramBase* open_histogram_; |
| 115 base::HistogramBase* restore_histogram_; | 118 base::HistogramBase* restore_histogram_; |
| 116 | 119 |
| 117 DISALLOW_COPY_AND_ASSIGN(LeveldbValueStore); | 120 DISALLOW_COPY_AND_ASSIGN(LeveldbValueStore); |
| 118 }; | 121 }; |
| 119 | 122 |
| 120 #endif // EXTENSIONS_BROWSER_VALUE_STORE_LEVELDB_VALUE_STORE_H_ | 123 #endif // EXTENSIONS_BROWSER_VALUE_STORE_LEVELDB_VALUE_STORE_H_ |
| OLD | NEW |