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

Issue 1779413002: Remove Blink's DatabaseIdentifier implementation (Closed)

Created:
4 years, 9 months ago by jsbell
Modified:
4 years, 9 months ago
Reviewers:
michaeln, kinuko, Mike West
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, jam, kinuko+watch, kinuko+fileapi, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nhiroki, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Try hacky file:/// fix #

Patch Set 3 : Rebase on top of file:/// fix #

Patch Set 4 : Remove unneeded include #

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

Messages

Total messages: 16 (6 generated)
Mike West
LGTM. Yay! Getting this out of Blink is a nice improvement. Thank you!
4 years, 9 months ago (2016-03-11 07:29:02 UTC) #1
jsbell
kinuko@, michaeln@ - can you please review? Extra special attention to identifier replacements inside the ...
4 years, 9 months ago (2016-03-11 17:16:59 UTC) #3
jsbell
org.chromium.android_webview.test.AwSettingsTest#testDatabaseEnabled failure seems like it might be legit?
4 years, 9 months ago (2016-03-11 21:49:38 UTC) #5
michaeln
lgtm 2 https://codereview.chromium.org/1779413002/diff/1/third_party/WebKit/public/platform/Platform.h File third_party/WebKit/public/platform/Platform.h (right): https://codereview.chromium.org/1779413002/diff/1/third_party/WebKit/public/platform/Platform.h#newcode214 third_party/WebKit/public/platform/Platform.h:214: virtual WebString databaseCreateOriginIdentifier(const WebSecurityOrigin& origin) { return ...
4 years, 9 months ago (2016-03-12 00:33:38 UTC) #6
kinuko
lgtm
4 years, 9 months ago (2016-03-12 10:55:55 UTC) #7
jsbell
https://codereview.chromium.org/1779413002/diff/1/third_party/WebKit/public/platform/Platform.h File third_party/WebKit/public/platform/Platform.h (right): https://codereview.chromium.org/1779413002/diff/1/third_party/WebKit/public/platform/Platform.h#newcode214 third_party/WebKit/public/platform/Platform.h:214: virtual WebString databaseCreateOriginIdentifier(const WebSecurityOrigin& origin) { return WebString(); } ...
4 years, 9 months ago (2016-03-14 22:30:59 UTC) #8
jsbell
https://codereview.chromium.org/1779413002/diff/1/third_party/WebKit/public/platform/Platform.h File third_party/WebKit/public/platform/Platform.h (right): https://codereview.chromium.org/1779413002/diff/1/third_party/WebKit/public/platform/Platform.h#newcode214 third_party/WebKit/public/platform/Platform.h:214: virtual WebString databaseCreateOriginIdentifier(const WebSecurityOrigin& origin) { return WebString(); } ...
4 years, 9 months ago (2016-03-16 16:40:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1779413002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1779413002/60001
4 years, 9 months ago (2016-03-22 20:00:18 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-22 20:07:37 UTC) #14
commit-bot: I haz the power
4 years, 9 months ago (2016-03-22 20:09:38 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1d0a8a44b6c8b671a45cf8d4fe7da52a74d42930
Cr-Commit-Position: refs/heads/master@{#382660}

Powered by Google App Engine
This is Rietveld 408576698