Cleanup Chrome's leveldb code. |
||
Issue descriptionCleanup env_chromium implementation in leveldb. Proposed changes (but not limited to): 1. Move env_chromium.*, chromium_logger.h to //storage/common/leveldb. 2. Move all code into a new storage::leveldb namespace. 3. Rename leveldb_env::ChromiumEnv to storage::leveldb::Env. 4. Move all code not specifically part of the implementation of storage::leveldb::Env into their own implementation files.
,
Sep 12 2017
jsbell@: yes, you have a point, and I'm not really a fan of requiring the leveldb users to add two dependencies. If this code were to be refactored, but left in third_party/leveldatabase then what do you think is the best namespace? 1) leveldb_env 2) leveldb::chrome 3) chrome::leveldb 4) other
,
Sep 12 2017
Adding to the pile of things to fix: Mutex members should be mutex_, not mu_. Also, if we'd do //storage/common/leveldb, we could have that export the //third_party/leveldatabase dependency. I'm generally not a fan of exported deps, but in this case using //storage/common/leveldb really means code wants leveldb.
,
Sep 12 2017
Re #c2 above. I decided to go with the leveldb_chrome namespace in https://chromium-review.googlesource.com/c/chromium/src/+/651574. We can change that when this is done if we come up with a better solution.
,
Sep 12 2017
Also, Copyright banner says, "Copyright (c) ???? The LevelDB Authors". We should change this to "Chromium Authors".
,
Sep 14 2017
Overridden virtual functions, like ChromiumEnv::DeleteFile should have "override" and delete "virtual".
,
Sep 18 2017
leveldb_env::WriteBufferSize() is only used by content/browser/indexed_db/leveldb/leveldb_database.cc. If there are no plans to use this elsewhere move this to indexed_db/leveldb.
,
Sep 22 2017
Do we want to rename the unit test program?: env_chromium_unittests
,
Oct 10 2017
There's a fair amount of memory-infra code. Would be nice if this can be consolidated somehow.
,
Jan 18 2018
|
||
►
Sign in to add a comment |
||
Comment 1 by jsb...@chromium.org
, Sep 6 2017