Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Unified Diff: content/browser/leveldb_wrapper_impl.h

Issue 2595183002: Don't duplicate values in LevelDBWrapperImpl::CommitBatch. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/leveldb_wrapper_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/leveldb_wrapper_impl.h
diff --git a/content/browser/leveldb_wrapper_impl.h b/content/browser/leveldb_wrapper_impl.h
index 663d5d85c7fab7bd4149cc2e90bcd83fb18da994..4a2496ba9b7980e598cd28bf0095a98cfad3fc4f 100644
--- a/content/browser/leveldb_wrapper_impl.h
+++ b/content/browser/leveldb_wrapper_impl.h
@@ -55,8 +55,6 @@ class CONTENT_EXPORT LevelDBWrapperImpl : public mojom::LevelDBWrapper {
friend class LevelDBWrapperImplTest;
using ValueMap = std::map<std::vector<uint8_t>, std::vector<uint8_t>>;
- using ChangedValueMap =
- std::map<std::vector<uint8_t>, base::Optional<std::vector<uint8_t>>>;
// Used to rate limit commits.
class RateLimiter {
@@ -83,11 +81,10 @@ class CONTENT_EXPORT LevelDBWrapperImpl : public mojom::LevelDBWrapper {
struct CommitBatch {
bool clear_all_first;
- ChangedValueMap changed_values;
+ std::set<std::vector<uint8_t>> changed_keys;
CommitBatch();
~CommitBatch();
- size_t GetDataSize() const;
};
// LevelDBWrapperImpl:
« no previous file with comments | « no previous file | content/browser/leveldb_wrapper_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698