|
|
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
Total comments: 9
|
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
|
Total messages: 11 (0 generated)
|