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

Issue 16870007: Switch database/file_identifier to std::string, remove createFromDatabaseIdentifier calls (Closed)

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

Description

Switch database/file_identifier to std::string, remove createFromDatabaseIdentifier calls Origin identifiers are always ASCII and can be stored as strings. Database identifiers are the same thing as origin identifiers. File identifiers are origin identifiers with an ASCII suffix. This keeps all of these ASCII, stored in std::string, and names origin identifiers "origin_identifier" more consistently. Origin identifiers are coded as UTF-16, so the leveldb coding code inflates/deflates to 16-bit strings. This also removes some remaining calls to WebSecurityOrigin::createFromDatabaseIdentifier in favor of calls to webkit/common/database/database_identifier to remove dependencies on Blink and unnecessary 8bit -> 16bit -> 8bit string conversions. BUG=237267 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210033

Patch Set 1 #

Total comments: 9

Patch Set 2 : Rebased #

Patch Set 3 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -111 lines) Patch
M content/browser/indexed_db/indexed_db_backing_store.h View 1 2 4 chunks +10 lines, -9 lines 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store.cc View 1 2 13 chunks +30 lines, -30 lines 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store_unittest.cc View 1 2 6 chunks +14 lines, -19 lines 0 comments Download
M content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc View 1 2 2 chunks +3 lines, -6 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/indexed_db/indexed_db_factory.h View 1 3 chunks +5 lines, -5 lines 0 comments Download
M content/browser/indexed_db/indexed_db_factory.cc View 1 2 8 chunks +15 lines, -18 lines 0 comments Download
M content/browser/indexed_db/indexed_db_fake_backing_store.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_leveldb_coding.h View 1 2 2 chunks +9 lines, -7 lines 0 comments Download
M content/browser/indexed_db/indexed_db_leveldb_coding.cc View 1 2 chunks +8 lines, -6 lines 0 comments Download
M content/browser/indexed_db/indexed_db_leveldb_coding_unittest.cc View 1 2 2 chunks +5 lines, -7 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jamesr
This patch is on top of https://codereview.chromium.org/17003010/. My true goal is to cut down on ...
7 years, 6 months ago (2013-06-20 05:31:45 UTC) #1
jsbell
lgtm with a few nits (and notes to myself for future work) https://codereview.chromium.org/16870007/diff/1/content/browser/indexed_db/indexed_db_backing_store.h File content/browser/indexed_db/indexed_db_backing_store.h ...
7 years, 6 months ago (2013-06-20 16:38:39 UTC) #2
jamesr
https://codereview.chromium.org/16870007/diff/1/content/browser/indexed_db/indexed_db_factory.cc File content/browser/indexed_db/indexed_db_factory.cc (right): https://codereview.chromium.org/16870007/diff/1/content/browser/indexed_db/indexed_db_factory.cc#newcode34 content/browser/indexed_db/indexed_db_factory.cc:34: static string16 ComputeUniqueIdentifier(const string16& name, On 2013/06/20 16:38:40, jsbell ...
7 years, 6 months ago (2013-06-20 16:54:32 UTC) #3
jsbell
On 2013/06/20 16:54:32, jamesr wrote: > https://codereview.chromium.org/16870007/diff/1/content/browser/indexed_db/indexed_db_factory.cc > File content/browser/indexed_db/indexed_db_factory.cc (right): > > https://codereview.chromium.org/16870007/diff/1/content/browser/indexed_db/indexed_db_factory.cc#newcode34 > ...
7 years, 5 months ago (2013-07-02 22:27:12 UTC) #4
jsbell
Rebased. Following https://codereview.chromium.org/18221003/ this may get even simpler.
7 years, 5 months ago (2013-07-02 23:49:25 UTC) #5
jsbell
Rebased again. Should be good to go now.
7 years, 5 months ago (2013-07-03 16:43:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/16870007/14001
7 years, 5 months ago (2013-07-03 16:44:36 UTC) #7
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 5 months ago (2013-07-03 16:51:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/16870007/14001
7 years, 5 months ago (2013-07-03 16:55:52 UTC) #9
commit-bot: I haz the power
Change committed as 210033
7 years, 5 months ago (2013-07-03 20:15:56 UTC) #10
jamesr
7 years, 5 months ago (2013-07-03 22:13:08 UTC) #11
Message was sent while issue was closed.
Poo - sorry about dropping the ball on this!  For some reason I thought it had
landed.  Thanks for following up!

Powered by Google App Engine
This is Rietveld 408576698