// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LEVELDB_WRAPPER_H_ #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LEVELDB_WRAPPER_H_ #include <stdint.h> #include <map> #include <memory> #include <string> #include "base/memory/raw_ptr.h" #include "third_party/leveldatabase/src/include/leveldb/slice.h" namespace leveldb { class DB; class Iterator; class Slice; class Status; class WriteBatch; } namespace sync_file_system { namespace drive_backend { class SliceComparator { … }; // LevelDBWrapper class wraps leveldb::DB and leveldb::WriteBatch to provide // transparent access to pre-commit data. // Put() and Delete() update data on memory, and Get() can access to those data // and also data on disk. Those data on memory are written down on disk when // Commit() is called. class LevelDBWrapper { … }; } // namespace drive_backend } // namespace sync_file_system #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LEVELDB_WRAPPER_H_