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

Issue 2511403003: Send IndexedDB observations through IDBDatabaseCallbacks. (Closed)

Created:
4 years, 1 month ago by Reilly Grant (use Gerrit)
Modified:
4 years ago
CC:
Aaron Boodman, abarth-chromium, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, cmumford, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, haraken, jam, jsbell+idb_chromium.org, mlamouri+watch-content_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

Send IndexedDB observations through IDBDatabaseCallbacks. This change refactors IndexedDB observations that they are transmitted through the same DatabaseCallbacks Mojo interface as other out-of-band database events. This means we can delete a lot of code that existed specifically to support observers in the Blink public API and remove the last remaining legacy IPC messages from indexed_db_messages.h. Note, indexed_db_messages.h remains after this change because removing it causes a lot of unrelated code churn. BUG=627484 Committed: https://crrev.com/8f7a4e424f50eec24ec03e2e11f7048b1a3f6b0b Cr-Commit-Position: refs/heads/master@{#434781}

Patch Set 1 #

Patch Set 2 : Rebased. #

Total comments: 2

Patch Set 3 : Fix build. #

Patch Set 4 : Remove FuzzTraits for removed ParamTraits. #

Patch Set 5 : Remove unnecessary forward declaration. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -1089 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/indexed_db/database_impl.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_callbacks.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_database.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database.cc View 1 2 3 chunks +7 lines, -12 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database_callbacks.h View 3 chunks +1 line, -4 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database_callbacks.cc View 5 chunks +11 lines, -8 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.h View 4 chunks +1 line, -13 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.cc View 4 chunks +1 line, -24 lines 0 comments Download
M content/browser/indexed_db/indexed_db_factory_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
D content/browser/indexed_db/indexed_db_observation.h View 1 chunk +0 lines, -51 lines 0 comments Download
D content/browser/indexed_db/indexed_db_observation.cc View 1 chunk +0 lines, -33 lines 0 comments Download
D content/browser/indexed_db/indexed_db_observer_changes.h View 1 chunk +0 lines, -50 lines 0 comments Download
D content/browser/indexed_db/indexed_db_observer_changes.cc View 1 chunk +0 lines, -26 lines 0 comments Download
M content/browser/indexed_db/indexed_db_transaction.h View 3 chunks +2 lines, -4 lines 0 comments Download
M content/browser/indexed_db/indexed_db_transaction.cc View 3 chunks +5 lines, -6 lines 0 comments Download
M content/browser/indexed_db/mock_indexed_db_database_callbacks.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/child/BUILD.gn View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M content/child/indexed_db/indexed_db_database_callbacks_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/child/indexed_db/indexed_db_database_callbacks_impl.cc View 3 chunks +24 lines, -0 lines 0 comments Download
M content/child/indexed_db/indexed_db_dispatcher.h View 1 2 4 chunks +0 lines, -31 lines 0 comments Download
M content/child/indexed_db/indexed_db_dispatcher.cc View 1 2 3 chunks +0 lines, -58 lines 0 comments Download
D content/child/indexed_db/indexed_db_message_filter.h View 1 chunk +0 lines, -35 lines 0 comments Download
D content/child/indexed_db/indexed_db_message_filter.cc View 1 chunk +0 lines, -36 lines 0 comments Download
M content/child/indexed_db/webidbcursor_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/child/indexed_db/webidbdatabase_impl.h View 2 chunks +7 lines, -3 lines 0 comments Download
M content/child/indexed_db/webidbdatabase_impl.cc View 1 2 6 chunks +12 lines, -26 lines 0 comments Download
M content/child/indexed_db/webidbfactory_impl.cc View 4 chunks +4 lines, -8 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M content/common/indexed_db/indexed_db.mojom View 1 2 4 chunks +20 lines, -1 line 0 comments Download
M content/common/indexed_db/indexed_db.typemap View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_enum_traits.h View 1 chunk +9 lines, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_enum_traits.cc View 1 2 2 chunks +42 lines, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_messages.h View 1 chunk +0 lines, -56 lines 0 comments Download
D content/common/indexed_db/indexed_db_param_traits.h View 1 chunk +0 lines, -45 lines 0 comments Download
D content/common/indexed_db/indexed_db_param_traits.cc View 1 chunk +0 lines, -231 lines 0 comments Download
M content/common/indexed_db/indexed_db_struct_traits.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 2 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBDatabase.h View 5 chunks +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp View 6 chunks +43 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBDatabaseCallbacks.h View 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBDatabaseCallbacks.cpp View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBObserver.h View 1 2 3 4 2 chunks +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp View 3 chunks +3 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/MockWebIDBDatabase.h View 2 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/WebIDBDatabaseCallbacksImpl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/WebIDBDatabaseCallbacksImpl.cpp View 1 chunk +8 lines, -0 lines 0 comments Download
D third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.h View 1 chunk +0 lines, -65 lines 0 comments Download
D third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.cpp View 1 chunk +0 lines, -52 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabase.h View 3 chunks +9 lines, -4 lines 0 comments Download
M third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseCallbacks.h View 2 chunks +9 lines, -1 line 0 comments Download
D third_party/WebKit/public/platform/modules/indexeddb/WebIDBObserver.h View 1 chunk +0 lines, -34 lines 0 comments Download
M third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h View 1 chunk +0 lines, -1 line 0 comments Download
M tools/ipc_fuzzer/fuzzer/fuzzer.cc View 1 2 3 1 chunk +0 lines, -115 lines 0 comments Download

Messages

Total messages: 53 (33 generated)
Reilly Grant (use Gerrit)
kenrb@ for IPC security review. jsbell@ for IndexedDB review.
4 years, 1 month ago (2016-11-19 00:42:22 UTC) #2
jsbell
dmurph - can you review the observer changes too?
4 years, 1 month ago (2016-11-19 00:47:38 UTC) #6
Reilly Grant (use Gerrit)
Rebased.
4 years, 1 month ago (2016-11-19 01:32:06 UTC) #9
jsbell
lgtm https://codereview.chromium.org/2511403003/diff/20001/content/common/indexed_db/indexed_db.mojom File content/common/indexed_db/indexed_db.mojom (right): https://codereview.chromium.org/2511403003/diff/20001/content/common/indexed_db/indexed_db.mojom#newcode152 content/common/indexed_db/indexed_db.mojom:152: map<int32, array<int32>> observation_index_map; Can we document what this ...
4 years, 1 month ago (2016-11-21 19:45:22 UTC) #14
dmurph
observer bits lgtm
4 years, 1 month ago (2016-11-21 22:13:36 UTC) #15
Reilly Grant (use Gerrit)
kenrb@, ping.
4 years ago (2016-11-22 21:02:54 UTC) #16
Reilly Grant (use Gerrit)
Fix build.
4 years ago (2016-11-23 02:40:20 UTC) #21
Reilly Grant (use Gerrit)
pfeldman@, please review the following: content/browser/BUILD.gn content/child/BUILD.gn content/common/BUILD.gn content/renderer/render_thread_impl.cc third_party/WebKit/public/BUILD.gn
4 years ago (2016-11-23 02:41:57 UTC) #23
kenrb
Sorry for the delay. ipc lgtm
4 years ago (2016-11-23 17:12:55 UTC) #28
pfeldman
lgtm
4 years ago (2016-11-23 19:09:53 UTC) #29
Reilly Grant (use Gerrit)
Remove FuzzTraits for removed ParamTraits.
4 years ago (2016-11-23 19:25:57 UTC) #30
Reilly Grant (use Gerrit)
mbarbella@ for fuzzer.cc changes.
4 years ago (2016-11-23 19:26:26 UTC) #32
Martin Barbella
On 2016/11/23 19:26:26, Reilly Grant wrote: > mbarbella@ for fuzzer.cc changes. fuzzer.cc lgtm. Sorry for ...
4 years ago (2016-11-28 02:18:24 UTC) #37
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/2511403003/60001
4 years ago (2016-11-28 05:52:29 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/313320)
4 years ago (2016-11-28 05:59:22 UTC) #42
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/2511403003/80001
4 years ago (2016-11-28 18:19:15 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/339506)
4 years ago (2016-11-28 19:48:26 UTC) #47
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/2511403003/80001
4 years ago (2016-11-28 19:52:10 UTC) #49
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-11-28 23:53:59 UTC) #51
commit-bot: I haz the power
4 years ago (2016-11-28 23:56:49 UTC) #53
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/8f7a4e424f50eec24ec03e2e11f7048b1a3f6b0b
Cr-Commit-Position: refs/heads/master@{#434781}

Powered by Google App Engine
This is Rietveld 408576698