|
|
Remove Blink's DatabaseIdentifier implementation
DatabaseIdentifier is used to map an origin (scheme/host/port) to a
string that is safe to use as a filename, and is used by multiple
storage APIs. Both Blink and Chromium ended up with implementations
that needed to be kept in sync, and it was also used in many places
unnecessarily.
This change removes the Blink implementation:
* When identifiers are still used for renderer->browser messaging in
the WebSQL implementation, a WebSecurityOrigin is passed from Blink
to Chromium and the identifiers are minted in Chromium code. (This
should be replaced with url::Origin end-to-end, but we'll do that
later - bug 591482.)
* The WebSQL implementation in Blink used database identifiers
internally in maps; use stringified URLs instead, since they don't
need to be filename-friendly.
* When WebSQL and FileSystem APIs do need to mint filenames in
Blink, do so via Platform APIs implemented in Chromium.
BUG= 591240
R=kinuko@chromium.org,michaeln@chromium.org,mkwst@chromium.org
Committed: https://crrev.com/1d0a8a44b6c8b671a45cf8d4fe7da52a74d42930
Cr-Commit-Position: refs/heads/master@{#382660}
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+205 lines, -595 lines) |
Patch |
 |
M |
content/child/blink_platform_impl.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/child/blink_platform_impl.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/child/db_message_filter.cc
|
View
|
|
2 chunks |
+19 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/child/web_database_observer_impl.h
|
View
|
|
1 chunk |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/child/web_database_observer_impl.cc
|
View
|
1
2
3
|
6 chunks |
+53 lines, -43 lines |
0 comments
|
Download
|
 |
M |
content/renderer/renderer_blink_platform_impl.h
|
View
|
1
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/renderer_blink_platform_impl.cc
|
View
|
1
2
|
3 chunks |
+18 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/filesystem/DOMFileSystem.cpp
|
View
|
1
2
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/webdatabase/Database.cpp
|
View
|
1
2
3
|
7 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp
|
View
|
|
10 chunks |
+23 lines, -22 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/webdatabase/QuotaTracker.h
|
View
|
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/webdatabase/QuotaTracker.cpp
|
View
|
|
2 chunks |
+14 lines, -12 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/webdatabase/SQLTransactionClient.cpp
|
View
|
|
1 chunk |
+14 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/blink_platform.gypi
|
View
|
1
2
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp
|
View
|
1
|
3 chunks |
+0 lines, -12 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/Source/platform/weborigin/DatabaseIdentifier.h
|
View
|
|
1 chunk |
+0 lines, -43 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/Source/platform/weborigin/DatabaseIdentifier.cpp
|
View
|
1
2
3
|
1 chunk |
+0 lines, -134 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/Source/platform/weborigin/DatabaseIdentifierTest.cpp
|
View
|
|
1 chunk |
+0 lines, -257 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebDatabase.cpp
|
View
|
|
1 chunk |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/platform/Platform.h
|
View
|
1
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/platform/WebDatabaseObserver.h
|
View
|
|
1 chunk |
+10 lines, -9 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/platform/WebSecurityOrigin.h
|
View
|
1
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/web/WebDatabase.h
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
Total messages: 16 (6 generated)
|