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

Issue 2449953008: Port messages sent by WebIDBDatabaseImpl to Mojo. (Closed)

Created:
4 years, 1 month ago by Reilly Grant (use Gerrit)
Modified:
4 years, 1 month ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, cmumford, darin (slow to review), darin-cc_chromium.org, jsbell+idb_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Port messages sent by WebIDBDatabaseImpl to Mojo. This is part two of the series of patches that converts the IPC messages sent by WebIDBFactoryImpl, WebIDBDatabaseImpl and WebIDBCursorImpl to Mojo messages. This is a more mechanical change because the conversion of messages sent by WebIDBFactoryImpl added most of the necessary infrastructure. BUG=627484 Committed: https://crrev.com/963ec6df64089bef6867ccdc608101d5fc06d5c0 Cr-Commit-Position: refs/heads/master@{#430110}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fix Windows build and LSan failures. #

Patch Set 3 : Rebased. #

Patch Set 4 : Address cmumford@ and jsbell@'s comments. #

Total comments: 27

Patch Set 5 : Address dcheng@'s comments. #

Total comments: 10

Patch Set 6 : Address more comments from dcheng@. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2293 lines, -2155 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A content/browser/indexed_db/database_impl.h View 1 2 3 1 chunk +130 lines, -0 lines 0 comments Download
A content/browser/indexed_db/database_impl.cc View 1 2 3 4 5 1 chunk +781 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_callbacks.h View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/indexed_db/indexed_db_callbacks.cc View 1 2 3 4 5 20 chunks +245 lines, -144 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database.h View 1 2 3 4 5 2 chunks +2 lines, -5 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database.cc View 5 chunks +9 lines, -8 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.h View 1 2 3 4 5 9 chunks +9 lines, -112 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.cc View 1 2 3 11 chunks +32 lines, -611 lines 0 comments Download
M content/browser/indexed_db/indexed_db_index_writer.h View 2 chunks +12 lines, -13 lines 0 comments Download
M content/browser/indexed_db/indexed_db_index_writer.cc View 3 chunks +13 lines, -15 lines 0 comments Download
M content/child/indexed_db/indexed_db_callbacks_impl.h View 1 2 chunks +31 lines, -4 lines 0 comments Download
M content/child/indexed_db/indexed_db_callbacks_impl.cc View 1 2 3 4 6 chunks +150 lines, -15 lines 0 comments Download
M content/child/indexed_db/indexed_db_dispatcher.h View 1 2 3 4 5 6 chunks +10 lines, -105 lines 0 comments Download
M content/child/indexed_db/indexed_db_dispatcher.cc View 8 chunks +7 lines, -317 lines 0 comments Download
D content/child/indexed_db/indexed_db_dispatcher_unittest.cc View 1 chunk +0 lines, -321 lines 0 comments Download
M content/child/indexed_db/webidbdatabase_impl.h View 1 2 3 4 5 3 chunks +21 lines, -4 lines 0 comments Download
M content/child/indexed_db/webidbdatabase_impl.cc View 1 2 3 4 15 chunks +531 lines, -130 lines 0 comments Download
A content/child/indexed_db/webidbdatabase_impl_unittest.cc View 1 1 chunk +96 lines, -0 lines 0 comments Download
M content/child/indexed_db/webidbfactory_impl.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M content/common/indexed_db/indexed_db.mojom View 1 2 3 4 4 chunks +156 lines, -3 lines 0 comments Download
M content/common/indexed_db/indexed_db.typemap View 2 chunks +9 lines, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_key.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_messages.h View 8 chunks +0 lines, -336 lines 0 comments Download
M content/common/indexed_db/indexed_db_struct_traits.h View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_struct_traits.cc View 1 2 3 4 3 chunks +12 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/handle_interface_serialization.h View 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 54 (31 generated)
Reilly Grant (use Gerrit)
cmumford@ for IndexedDB review. dcheng@ for IPC security review. rockot@ for //mojo/public/cpp/bindings/lib/handle_interface_serialization.h
4 years, 1 month ago (2016-10-26 19:33:32 UTC) #2
Ken Rockot(use gerrit already)
On 2016/10/26 at 19:33:32, reillyg wrote: > rockot@ for //mojo/public/cpp/bindings/lib/handle_interface_serialization.h Said file LGTM
4 years, 1 month ago (2016-10-27 04:05:46 UTC) #11
Reilly Grant (use Gerrit)
jam@ because he's likely curious about this patch and because I need a //content owner ...
4 years, 1 month ago (2016-10-27 21:25:37 UTC) #12
Reilly Grant (use Gerrit)
Rebased.
4 years, 1 month ago (2016-10-27 21:53:38 UTC) #18
jam
On 2016/10/27 21:25:37, Reilly Grant wrote: > jam@ because he's likely curious about this patch ...
4 years, 1 month ago (2016-10-27 22:45:34 UTC) #21
cmumford
Looks fine, but I did have two times where the Blink Layout test failed: Regressions: ...
4 years, 1 month ago (2016-10-28 18:40:54 UTC) #23
jsbell
On 2016/10/28 18:40:54, cmumford wrote: > Looks fine, but I did have two times where ...
4 years, 1 month ago (2016-10-28 18:51:50 UTC) #24
jsbell
On 2016/10/28 18:51:50, jsbell wrote: > On 2016/10/28 18:40:54, cmumford wrote: > > Looks fine, ...
4 years, 1 month ago (2016-10-28 19:02:27 UTC) #25
jsbell
Also, the win_chromium_compile_dbg_ng build failure looks legit: e:\b\c\b\win\src\content\child\indexed_db\webidbdatabase_impl.h(31): warning C4275: non dll-interface class 'blink::WebIDBDatabase' used ...
4 years, 1 month ago (2016-10-28 19:04:33 UTC) #26
Reilly Grant (use Gerrit)
Address cmumford@ and jsbell@'s comments.
4 years, 1 month ago (2016-11-01 01:26:45 UTC) #27
cmumford
lgtm
4 years, 1 month ago (2016-11-02 14:31:14 UTC) #32
dcheng
Sorry for the slow review =( https://codereview.chromium.org/2449953008/diff/60001/content/browser/indexed_db/database_impl.cc File content/browser/indexed_db/database_impl.cc (right): https://codereview.chromium.org/2449953008/diff/60001/content/browser/indexed_db/database_impl.cc#newcode416 content/browser/indexed_db/database_impl.cc:416: if (!connection_->IsConnected()) I ...
4 years, 1 month ago (2016-11-03 04:27:05 UTC) #33
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2449953008/diff/1/content/browser/indexed_db/database_impl.h File content/browser/indexed_db/database_impl.h (right): https://codereview.chromium.org/2449953008/diff/1/content/browser/indexed_db/database_impl.h#newcode122 content/browser/indexed_db/database_impl.h:122: scoped_refptr<base::SingleThreadTaskRunner> idb_runner_; On 2016/10/28 at 18:40:53, cmumford wrote: > ...
4 years, 1 month ago (2016-11-03 21:32:22 UTC) #34
Reilly Grant (use Gerrit)
Address dcheng@'s comments.
4 years, 1 month ago (2016-11-03 21:32:35 UTC) #35
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2449953008/diff/60001/content/browser/indexed_db/indexed_db_dispatcher_host.cc File content/browser/indexed_db/indexed_db_dispatcher_host.cc (right): https://codereview.chromium.org/2449953008/diff/60001/content/browser/indexed_db/indexed_db_dispatcher_host.cc#newcode166 content/browser/indexed_db/indexed_db_dispatcher_host.cc:166: int64_t value_length) { On 2016/11/03 at 21:32:22, Reilly Grant ...
4 years, 1 month ago (2016-11-03 21:35:39 UTC) #38
dcheng
ipc lgtm... I think. It's really hard for me to be sure, since this CL ...
4 years, 1 month ago (2016-11-04 21:37:47 UTC) #41
Reilly Grant (use Gerrit)
Sorry again for the size. I promise the remaining Mojo conversion patches will be smaller. ...
4 years, 1 month ago (2016-11-04 22:02:55 UTC) #42
Reilly Grant (use Gerrit)
Address more comments from dcheng@.
4 years, 1 month ago (2016-11-04 23:48:24 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2449953008/100001
4 years, 1 month ago (2016-11-04 23:51:02 UTC) #49
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-05 01:11:30 UTC) #50
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/963ec6df64089bef6867ccdc608101d5fc06d5c0 Cr-Commit-Position: refs/heads/master@{#430110}
4 years, 1 month ago (2016-11-05 01:13:28 UTC) #52
agrieve
On 2016/11/05 01:13:28, commit-bot: I haz the power wrote: > Patchset 6 (id:??) landed as ...
4 years, 1 month ago (2016-11-08 15:14:05 UTC) #53
Reilly Grant (use Gerrit)
4 years, 1 month ago (2016-11-08 15:42:54 UTC) #54
Message was sent while issue was closed.
On 2016/11/08 at 15:14:05, agrieve wrote:
> On 2016/11/05 01:13:28, commit-bot: I haz the power wrote:
> > Patchset 6 (id:??) landed as
> > https://crrev.com/963ec6df64089bef6867ccdc608101d5fc06d5c0
> > Cr-Commit-Position: refs/heads/master@{#430110}
> 
> FYI - this change increased android .so size by 24kb. Is it the case that
there is another follow-up to remove old IPC code, or is the mojo conversion
just this costly (as tracked by
https://bugs.chromium.org/p/chromium/issues/detail?id=597125)

There is a good amount of code currently duplicated between supporting the
remaining legacy IPC calls and the new Mojo messages. That will be removed in my
next patch and even more code will be removed when this conversion allows me to
remove the //content/child layer from the IndexedDB implementation completely
and use the Mojo interface from Blink directly.

Powered by Google App Engine
This is Rietveld 408576698