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

Issue 18075008: IndexedDB: Switch key/value handling from vector<char> to std::string (Closed)

Created:
7 years, 5 months ago by jsbell
Modified:
7 years, 5 months ago
Reviewers:
Tom Sepez, alecflett, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

IndexedDB: Switch key/value handling from vector<char> to std::string LevelDB uses std::string in its APIs. To eliminate a conversion and simplify the code, switch the IDB backend from vector<char> to string as well. Also eliminate the LevelDBSlice type as well, using StringPiece and leveldb::Slice as appropriate. R=alecflett@chromium.org,tsepez@chromium.org TBR=jam@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210698

Patch Set 1 #

Total comments: 15

Patch Set 2 : Review feedback #

Patch Set 3 : Remove C++11ism #

Unified diffs Side-by-side diffs Delta from patch set Stats (+742 lines, -904 lines) Patch
M content/browser/indexed_db/indexed_db_backing_store.h View 8 chunks +12 lines, -11 lines 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store.cc View 1 97 chunks +235 lines, -282 lines 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store_unittest.cc View 1 6 chunks +10 lines, -17 lines 0 comments Download
M content/browser/indexed_db/indexed_db_callbacks.h View 1 chunk +5 lines, -5 lines 0 comments Download
M content/browser/indexed_db/indexed_db_callbacks.cc View 8 chunks +9 lines, -8 lines 0 comments Download
M content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/indexed_db/indexed_db_context_impl.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/indexed_db/indexed_db_cursor.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/indexed_db/indexed_db_cursor.cc View 5 chunks +6 lines, -6 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_database.cc View 7 chunks +6 lines, -7 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database_unittest.cc View 1 3 chunks +6 lines, -7 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M content/browser/indexed_db/indexed_db_fake_backing_store.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/indexed_db/indexed_db_leveldb_coding.h View 1 20 chunks +88 lines, -96 lines 0 comments Download
M content/browser/indexed_db/indexed_db_leveldb_coding.cc View 1 33 chunks +137 lines, -144 lines 0 comments Download
M content/browser/indexed_db/indexed_db_leveldb_coding_unittest.cc View 1 30 chunks +74 lines, -80 lines 0 comments Download
M content/browser/indexed_db/indexed_db_transaction.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_comparator.h View 1 chunk +3 lines, -4 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_database.h View 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_database.cc View 1 9 chunks +19 lines, -24 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_iterator.h View 2 chunks +4 lines, -4 lines 0 comments Download
D content/browser/indexed_db/leveldb/leveldb_slice.h View 1 chunk +0 lines, -48 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_transaction.h View 1 10 chunks +18 lines, -20 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_transaction.cc View 1 13 chunks +25 lines, -35 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_unittest.cc View 1 7 chunks +46 lines, -59 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_write_batch.h View 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_write_batch.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M content/child/indexed_db/indexed_db_dispatcher.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/child/indexed_db/indexed_db_dispatcher.cc View 1 2 7 chunks +8 lines, -8 lines 0 comments Download
M content/common/indexed_db/indexed_db_messages.h View 5 chunks +6 lines, -6 lines 0 comments Download
M content/content_browser.gypi View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
jsbell
alecflett@ - please take a look?
7 years, 5 months ago (2013-07-09 00:41:43 UTC) #1
alecflett
on the whole this is pretty awesome. A few minor nits, and some ideas for ...
7 years, 5 months ago (2013-07-09 18:26:30 UTC) #2
jsbell
re: Compare/CompareIndexKeys - they all end up being the same thing - a Compare call ...
7 years, 5 months ago (2013-07-09 19:41:46 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/18075008/8002
7 years, 5 months ago (2013-07-09 19:43:49 UTC) #4
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=14309
7 years, 5 months ago (2013-07-09 19:54:56 UTC) #5
jsbell
tsepez@ - can you review the IPC message changes? std::vector<char> => std::string in a few ...
7 years, 5 months ago (2013-07-09 19:58:01 UTC) #6
Tom Sepez
lgtm
7 years, 5 months ago (2013-07-09 20:15:08 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/18075008/8002
7 years, 5 months ago (2013-07-09 20:16:13 UTC) #8
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-09 20:37:45 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/18075008/35001
7 years, 5 months ago (2013-07-09 20:58:03 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-09 22:05:01 UTC) #11
jsbell
On 2013/07/09 22:05:01, I haz the power (commit-bot) wrote: > Sorry for I got bad ...
7 years, 5 months ago (2013-07-09 22:24:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/18075008/35001
7 years, 5 months ago (2013-07-09 23:16:11 UTC) #13
jam
gypi lgtm
7 years, 5 months ago (2013-07-10 01:14:55 UTC) #14
commit-bot: I haz the power
7 years, 5 months ago (2013-07-10 01:31:58 UTC) #15
Message was sent while issue was closed.
Change committed as 210698

Powered by Google App Engine
This is Rietveld 408576698