| 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> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> |
| 10 #include <string> | 11 #include <string> |
| 11 #include <vector> | 12 #include <vector> |
| 12 | 13 |
| 13 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 14 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
| 15 #include "base/macros.h" | 16 #include "base/macros.h" |
| 16 #include "base/memory/scoped_ptr.h" | |
| 17 #include "base/trace_event/memory_dump_provider.h" | 17 #include "base/trace_event/memory_dump_provider.h" |
| 18 #include "extensions/browser/value_store/lazy_leveldb.h" | 18 #include "extensions/browser/value_store/lazy_leveldb.h" |
| 19 #include "extensions/browser/value_store/value_store.h" | 19 #include "extensions/browser/value_store/value_store.h" |
| 20 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 20 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
| 21 | 21 |
| 22 namespace base { | 22 namespace base { |
| 23 class HistogramBase; | 23 class HistogramBase; |
| 24 } // namespace base | 24 } // namespace base |
| 25 | 25 |
| 26 // Value store area, backed by a leveldb database. | 26 // Value store area, backed by a leveldb database. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 leveldb::WriteBatch* batch, | 74 leveldb::WriteBatch* batch, |
| 75 ValueStoreChangeList* changes); | 75 ValueStoreChangeList* changes); |
| 76 | 76 |
| 77 // Commits the changes in |batch| to the database. | 77 // Commits the changes in |batch| to the database. |
| 78 ValueStore::Status WriteToDb(leveldb::WriteBatch* batch); | 78 ValueStore::Status WriteToDb(leveldb::WriteBatch* batch); |
| 79 | 79 |
| 80 DISALLOW_COPY_AND_ASSIGN(LeveldbValueStore); | 80 DISALLOW_COPY_AND_ASSIGN(LeveldbValueStore); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 #endif // EXTENSIONS_BROWSER_VALUE_STORE_LEVELDB_VALUE_STORE_H_ | 83 #endif // EXTENSIONS_BROWSER_VALUE_STORE_LEVELDB_VALUE_STORE_H_ |
| OLD | NEW |