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

Issue 1832473002: WebSQL: Use url::Origin rather than database identifiers for IPC (Closed)

Created:
4 years, 9 months ago by jsbell
Modified:
4 years, 6 months ago
Reviewers:
michaeln, jam, Mark P, Mike West
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebSQL: Use url::Origin rather than database identifiers for IPC Replace WebSecurityOrigin -> GURL -> string -> IPC -> string -> GURL with simpler WebSecurityOrigin -> IPC -> Origin -> GURL. Consumers of the messages still consume GURLs (Quota) or DatabaseIdentifiers (WebSQL) so there's more tidying that can be done in follow-ups. R=michaeln@chromium.org,mkwst@chromium.org BUG=591482 Committed: https://crrev.com/984e21a28bb2e43ba6df6e28c8f0738ee6e23018 Cr-Commit-Position: refs/heads/master@{#400996}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add unique origin checks #

Total comments: 3

Patch Set 3 : Update enum/histogram entries #

Patch Set 4 : OWNERS additions #

Patch Set 5 : Rebased #

Patch Set 6 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -89 lines) Patch
M content/browser/bad_message.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/OWNERS View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/database_message_filter.h View 3 chunks +9 lines, -5 lines 0 comments Download
M content/browser/renderer_host/database_message_filter.cc View 1 2 3 4 5 9 chunks +56 lines, -23 lines 0 comments Download
M content/child/OWNERS View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M content/child/database_util.h View 1 chunk +1 line, -1 line 0 comments Download
M content/child/database_util.cc View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M content/child/db_message_filter.h View 2 chunks +8 lines, -4 lines 0 comments Download
M content/child/db_message_filter.cc View 1 2 chunks +14 lines, -26 lines 0 comments Download
M content/child/web_database_observer_impl.cc View 1 2 3 4 5 2 chunks +9 lines, -10 lines 0 comments Download
M content/common/database_messages.h View 1 2 3 4 5 4 chunks +11 lines, -10 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 4 5 1 chunk +2 lines, -5 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
jsbell
mkwst@, michaeln@ - please take a look? https://codereview.chromium.org/1832473002/diff/1/content/browser/renderer_host/database_message_filter.cc File content/browser/renderer_host/database_message_filter.cc (right): https://codereview.chromium.org/1832473002/diff/1/content/browser/renderer_host/database_message_filter.cc#newcode272 content/browser/renderer_host/database_message_filter.cc:272: GURL(origin.Serialize()), Any ...
4 years, 9 months ago (2016-03-23 20:33:05 UTC) #1
Mike West
https://codereview.chromium.org/1832473002/diff/1/content/browser/renderer_host/database_message_filter.cc File content/browser/renderer_host/database_message_filter.cc (right): https://codereview.chromium.org/1832473002/diff/1/content/browser/renderer_host/database_message_filter.cc#newcode272 content/browser/renderer_host/database_message_filter.cc:272: GURL(origin.Serialize()), On 2016/03/23 at 20:33:05, jsbell wrote: > Any ...
4 years, 9 months ago (2016-03-24 15:06:08 UTC) #2
jsbell
michaeln@ - can you also take a look?
4 years, 8 months ago (2016-03-30 23:26:40 UTC) #3
michaeln
lgtm https://codereview.chromium.org/1832473002/diff/20001/content/browser/renderer_host/database_message_filter.cc File content/browser/renderer_host/database_message_filter.cc (left): https://codereview.chromium.org/1832473002/diff/20001/content/browser/renderer_host/database_message_filter.cc#oldcode310 content/browser/renderer_host/database_message_filter.cc:310: bad_message::DBMF_INVALID_ORIGIN_ON_OPEN); is there a way to mark DBMF_INVALID_ORIGIN_ON_OPEN ...
4 years, 8 months ago (2016-04-06 20:55:14 UTC) #4
jsbell
mpearson@ - histograms review? Also, any feedback on the specificity of bad_message enum/histograms? This one ...
4 years, 8 months ago (2016-04-06 23:28:22 UTC) #6
Mark P
histograms.xml lgtm as is (though I'd likely also be okay if you decide it's better ...
4 years, 8 months ago (2016-04-07 21:40:41 UTC) #7
jsbell
One more OWNER review needed for content/ stuff - jam@ ? For the future I ...
4 years, 8 months ago (2016-04-07 21:53:16 UTC) #9
jsbell
jam@ - ping?
4 years, 8 months ago (2016-04-18 18:34:32 UTC) #10
jsbell
jam@ - can you take a look? (still not important, but it's been lingering for ...
4 years, 6 months ago (2016-06-20 22:09:55 UTC) #11
jam
lgtm, sorry I completely missed this cl (feel free to IM me if I don't ...
4 years, 6 months ago (2016-06-21 15:21:28 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1832473002/100001
4 years, 6 months ago (2016-06-21 15:22:30 UTC) #15
jsbell
On 2016/06/21 15:21:28, jam wrote: > sorry I completely missed this cl (feel free to ...
4 years, 6 months ago (2016-06-21 15:22:55 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-21 15:27:09 UTC) #17
commit-bot: I haz the power
4 years, 6 months ago (2016-06-21 15:29:09 UTC) #19
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/984e21a28bb2e43ba6df6e28c8f0738ee6e23018
Cr-Commit-Position: refs/heads/master@{#400996}

Powered by Google App Engine
This is Rietveld 408576698