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

Issue 1832553002: IndexedDB: Pass url::Origin rather than GURL over IPC (Closed)

Created:
4 years, 9 months ago by jsbell
Modified:
4 years, 8 months ago
CC:
chromium-reviews, cmumford, darin-cc_chromium.org, jam, jsbell+idb_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@origin-wdb
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IndexedDB: Pass url::Origin rather than GURL over IPC Eliminate some WebSecurityOrigin -> string -> GURL conversions. The IndexedDB back-end in content/browser/indexed_db still uses GURL internally, so there's more cleanup to be done in follow-ups. R=mkwst@chromium.org BUG=591482 Committed: https://crrev.com/d77cea9f7f883a28cc9e5ca1e9091c0936a588fc Cr-Commit-Position: refs/heads/master@{#387138}

Patch Set 1 #

Patch Set 2 : Add unique origin check #

Patch Set 3 : typo #

Patch Set 4 : Fix sense of bad-origin tests #

Patch Set 5 : Rebased #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -78 lines) Patch
M content/browser/bad_message.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.cc View 1 2 3 4 5 chunks +28 lines, -2 lines 2 comments Download
M content/browser/indexed_db/indexed_db_factory.h View 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/indexed_db/indexed_db_factory_impl.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/indexed_db/indexed_db_factory_impl.cc View 4 chunks +6 lines, -3 lines 0 comments Download
M content/browser/indexed_db/indexed_db_factory_unittest.cc View 1 2 3 4 8 chunks +17 lines, -36 lines 0 comments Download
M content/browser/indexed_db/indexed_db_unittest.cc View 1 2 3 4 3 chunks +7 lines, -12 lines 0 comments Download
M content/browser/indexed_db/mock_indexed_db_factory.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/child/indexed_db/indexed_db_dispatcher.h View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M content/child/indexed_db/indexed_db_dispatcher.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M content/child/indexed_db/webidbfactory_impl.cc View 3 chunks +3 lines, -6 lines 0 comments Download
M content/common/indexed_db/indexed_db_messages.h View 4 chunks +4 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
jsbell
mkwst@ - can you please review? (Not actually dependent on the other CL)
4 years, 9 months ago (2016-03-23 22:47:01 UTC) #3
Mike West
LGTM. I'm not thrilled about all the `GURL(o.Serialize())` calls, and I think it might be ...
4 years, 9 months ago (2016-03-24 14:30:56 UTC) #4
jsbell
On 2016/03/24 14:30:56, Mike West wrote: > LGTM. I'm not thrilled about all the `GURL(o.Serialize())` ...
4 years, 9 months ago (2016-03-24 16:29:12 UTC) #5
jsbell
michaeln@, cmumford@ - can you take a look at the IDB changes?
4 years, 8 months ago (2016-03-30 23:26:26 UTC) #7
michaeln
lgtm
4 years, 8 months ago (2016-04-06 20:44:55 UTC) #8
jsbell
mpearson@ - histograms review? (Note that I'll need to rebase this on top of the ...
4 years, 8 months ago (2016-04-07 17:58:10 UTC) #10
Mark P
histograms.xml lgtm approval once you properly rebase
4 years, 8 months ago (2016-04-07 21:41:36 UTC) #11
jsbell
creis@ - can you OWNERS-review the content/browser/bad_message.h?
4 years, 8 months ago (2016-04-13 19:32:44 UTC) #13
Charlie Reis
bad_message.h LGTM if you're ok with conflating these separate conditions. https://codereview.chromium.org/1832553002/diff/80001/content/browser/indexed_db/indexed_db_dispatcher_host.cc File content/browser/indexed_db/indexed_db_dispatcher_host.cc (right): https://codereview.chromium.org/1832553002/diff/80001/content/browser/indexed_db/indexed_db_dispatcher_host.cc#newcode324 ...
4 years, 8 months ago (2016-04-13 20:21:07 UTC) #14
jsbell
https://codereview.chromium.org/1832553002/diff/80001/content/browser/indexed_db/indexed_db_dispatcher_host.cc File content/browser/indexed_db/indexed_db_dispatcher_host.cc (right): https://codereview.chromium.org/1832553002/diff/80001/content/browser/indexed_db/indexed_db_dispatcher_host.cc#newcode324 content/browser/indexed_db/indexed_db_dispatcher_host.cc:324: bad_message::ReceivedBadMessage(this, bad_message::IDBDH_INVALID_ORIGIN); On 2016/04/13 20:21:07, Charlie Reis wrote: > ...
4 years, 8 months ago (2016-04-13 21:52:45 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1832553002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1832553002/80001
4 years, 8 months ago (2016-04-13 21:53:40 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-13 22:59:05 UTC) #20
commit-bot: I haz the power
4 years, 8 months ago (2016-04-13 23:00:27 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d77cea9f7f883a28cc9e5ca1e9091c0936a588fc
Cr-Commit-Position: refs/heads/master@{#387138}

Powered by Google App Engine
This is Rietveld 408576698