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

Issue 2160163002: [IndexedDB] Propogating Changes to Observer : Browser (Closed)

Created:
4 years, 5 months ago by palakj1
Modified:
4 years, 5 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, haraken, jam, jsbell+idb_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[IndexedDB] Propogating Changes to Observer : Browser The Cl only includes filtering and sending changes to observer only at the browser end. * Each transaction has a connection-changes map. * Changes contain i. array of observations ii. map of observer_id to array of indices from observations, that the observer is listening to. * Changes are filtered during transaction operations * On transaction commit, for each connection, a single changes map is sent to renderer. Current Implementation and Future Scope: https://goo.gl/Y2dobn Reference: https://github.com/dmurph/indexed-db-observers/blob/gh-pages/EXPLAINER.md TBR=palmer BUG=609934 Committed: https://crrev.com/3fee5f7897422fb482c25780fada51b8869c6a8e Cr-Commit-Position: refs/heads/master@{#406427}

Patch Set 1 #

Patch Set 2 : Browser changes #

Total comments: 3

Patch Set 3 : Browser changes #

Patch Set 4 : browser changes #

Patch Set 5 : Working Observer #

Total comments: 23

Patch Set 6 : Only rename changes in IDBObservation #

Patch Set 7 : Expected tests updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+517 lines, -240 lines) Patch
M content/browser/indexed_db/indexed_db_connection.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_connection.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database.h View 1 2 3 4 5 3 chunks +13 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_database.cc View 1 2 3 4 5 6 chunks +56 lines, -3 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database_callbacks.h View 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database_callbacks.cc View 2 chunks +9 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.h View 1 2 4 chunks +10 lines, -3 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.cc View 1 2 3 4 5 4 chunks +30 lines, -5 lines 0 comments Download
A content/browser/indexed_db/indexed_db_observation.h View 1 2 3 4 5 1 chunk +51 lines, -0 lines 0 comments Download
A content/browser/indexed_db/indexed_db_observation.cc View 1 chunk +33 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_observer.h View 1 2 3 4 5 1 chunk +41 lines, -3 lines 0 comments Download
M content/browser/indexed_db/indexed_db_observer.cc View 1 2 3 4 5 1 chunk +19 lines, -2 lines 0 comments Download
A content/browser/indexed_db/indexed_db_observer_changes.h View 1 2 3 4 5 1 chunk +51 lines, -0 lines 0 comments Download
A content/browser/indexed_db/indexed_db_observer_changes.cc View 1 chunk +26 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_transaction.h View 1 2 3 4 5 4 chunks +15 lines, -2 lines 0 comments Download
M content/browser/indexed_db/indexed_db_transaction.cc View 1 2 3 4 5 4 chunks +41 lines, -7 lines 0 comments Download
M content/browser/indexed_db/indexed_db_transaction_unittest.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/child/indexed_db/indexed_db_dispatcher.cc View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M content/common/indexed_db/indexed_db_messages.h View 1 2 9 chunks +43 lines, -6 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 6 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 4 5 6 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 4 5 6 1 chunk +6 lines, -6 lines 0 comments Download
A + third_party/WebKit/Source/modules/indexeddb/IDBObservation.h View 1 2 3 4 5 4 chunks +7 lines, -7 lines 0 comments Download
A + third_party/WebKit/Source/modules/indexeddb/IDBObservation.cpp View 1 2 3 4 5 5 chunks +10 lines, -10 lines 0 comments Download
A + third_party/WebKit/Source/modules/indexeddb/IDBObservation.idl View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/modules/indexeddb/IDBObserverChangesRecord.h View 1 2 3 4 5 1 chunk +0 lines, -44 lines 0 comments Download
D third_party/WebKit/Source/modules/indexeddb/IDBObserverChangesRecord.cpp View 1 2 3 4 5 1 chunk +0 lines, -91 lines 0 comments Download
D third_party/WebKit/Source/modules/indexeddb/IDBObserverChangesRecord.idl View 1 2 3 4 5 1 chunk +0 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h View 1 chunk +3 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 47 (29 generated)
palakj1
This patch includes Observer changes corresponding to browser. Besides, IDBObservation file has been renamed from ...
4 years, 5 months ago (2016-07-19 01:21:21 UTC) #2
palakj1
Please have a look
4 years, 5 months ago (2016-07-19 01:28:58 UTC) #8
dmurph
lgtm
4 years, 5 months ago (2016-07-19 01:29:03 UTC) #9
cmumford
Can this CL be rebased to ToT and refreshed?
4 years, 5 months ago (2016-07-19 01:38:33 UTC) #12
haraken
WebKit LGTM https://codereview.chromium.org/2160163002/diff/20001/third_party/WebKit/Source/modules/indexeddb/IDBObservation.cpp File third_party/WebKit/Source/modules/indexeddb/IDBObservation.cpp (right): https://codereview.chromium.org/2160163002/diff/20001/third_party/WebKit/Source/modules/indexeddb/IDBObservation.cpp#newcode25 third_party/WebKit/Source/modules/indexeddb/IDBObservation.cpp:25: return ScriptValue::from(scriptState, v8::Undefined(scriptState->isolate())); Can we just return ...
4 years, 5 months ago (2016-07-19 01:47:40 UTC) #14
palakj1
Please have a look. Already committed changes eliminated.
4 years, 5 months ago (2016-07-19 02:03:53 UTC) #15
palakj1
4 years, 5 months ago (2016-07-19 02:37:30 UTC) #16
palakj1
Please not that the cl reflects changes only at the browser end and therefore, fails ...
4 years, 5 months ago (2016-07-19 02:40:46 UTC) #17
palakj1
Updated patch builds.
4 years, 5 months ago (2016-07-19 03:11:55 UTC) #23
cmumford
On 2016/07/19 03:11:55, palakj1 wrote: > Updated patch builds. It looks like you unintentionally added ...
4 years, 5 months ago (2016-07-19 14:31:14 UTC) #26
cmumford
Mostly all small nits. https://codereview.chromium.org/2160163002/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/2160163002/diff/80001/content/browser/indexed_db/indexed_db_dispatcher_host.cc#newcode328 content/browser/indexed_db/indexed_db_dispatcher_host.cc:328: for (auto& observation : changes->release_observations()) ...
4 years, 5 months ago (2016-07-19 16:00:16 UTC) #27
Marijn Kruisselbrink
lgtm, assuming you'll fix some of cmumford's nits https://codereview.chromium.org/2160163002/diff/80001/content/browser/indexed_db/indexed_db_transaction.cc File content/browser/indexed_db/indexed_db_transaction.cc (right): https://codereview.chromium.org/2160163002/diff/80001/content/browser/indexed_db/indexed_db_transaction.cc#newcode356 content/browser/indexed_db/indexed_db_transaction.cc:356: connection_changes_map_.clear(); ...
4 years, 5 months ago (2016-07-19 17:16:28 UTC) #28
palakj1
Only renaming changes included in IDBObservation. https://codereview.chromium.org/2160163002/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/2160163002/diff/80001/content/browser/indexed_db/indexed_db_dispatcher_host.cc#newcode328 content/browser/indexed_db/indexed_db_dispatcher_host.cc:328: for (auto& observation ...
4 years, 5 months ago (2016-07-19 18:04:14 UTC) #29
cmumford
Change the summary to start with [IndexedDB] instead of [IndexedDBObserver] because the name in the ...
4 years, 5 months ago (2016-07-19 19:41:06 UTC) #32
dmurph
I just chatted with Josh, since the messages change is the same as the other ...
4 years, 5 months ago (2016-07-19 21:32:04 UTC) #36
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/2160163002/120001
4 years, 5 months ago (2016-07-19 22:42:25 UTC) #43
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-20 00:21:40 UTC) #44
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 00:24:09 UTC) #46
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/3fee5f7897422fb482c25780fada51b8869c6a8e
Cr-Commit-Position: refs/heads/master@{#406427}

Powered by Google App Engine
This is Rietveld 408576698