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

Issue 2642943002: Allow closing IndexedDB database before deleting (Closed)

Created:
3 years, 11 months ago by eostroukhov
Modified:
3 years, 10 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, haraken, Aaron Boodman, dglazkov+blink, darin-cc_chromium.org, cmumford, blink-reviews, darin (slow to review), jsbell+idb_chromium.org, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow closing IndexedDB database before deleting DevTools wants to allow the users to delete individual IndexedDB databases. Current API cannot delete database that is currently open. This change introduces a new API parameter to force closing the database. BUG=682425 Review-Url: https://codereview.chromium.org/2642943002 Cr-Commit-Position: refs/heads/master@{#445486} Committed: https://chromium.googlesource.com/chromium/src/+/1470b1f47385ebd166e6ca60a34a770c0f4c40f6

Patch Set 1 #

Patch Set 2 : Fixed compilation errors in tests #

Total comments: 10

Patch Set 3 : Allow closing IndexedDB database before deleting #

Total comments: 4

Patch Set 4 : Allow closing IndexedDB database before deleting #

Total comments: 2

Patch Set 5 : Pass the flasg #

Patch Set 6 : Actually pass the flag #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -28 lines) Patch
M content/browser/indexed_db/indexed_db_database.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_database.cc View 1 2 2 chunks +9 lines, -3 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database_unittest.cc View 1 2 2 chunks +42 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.h View 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.cc View 3 chunks +8 lines, -4 lines 0 comments Download
M content/browser/indexed_db/indexed_db_factory.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_factory_impl.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_factory_impl.cc View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/indexed_db/indexed_db_factory_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/indexed_db/mock_indexed_db_factory.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M content/child/indexed_db/webidbfactory_impl.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/child/indexed_db/webidbfactory_impl.cc View 4 chunks +8 lines, -5 lines 0 comments Download
M content/common/indexed_db/indexed_db.mojom View 1 2 1 chunk +1 line, -1 line 1 comment Download
M third_party/WebKit/Source/modules/indexeddb/IDBFactory.h View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp View 1 2 2 chunks +19 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 36 (23 generated)
eostroukhov
Please take a look. I am not entirely sure this is what the API should ...
3 years, 11 months ago (2017-01-19 00:50:27 UTC) #12
cmumford
Can you also 1) run git-cl-format, and 2) add a test for this? https://codereview.chromium.org/2642943002/diff/20001/content/browser/indexed_db/indexed_db_factory_impl.cc File ...
3 years, 11 months ago (2017-01-19 20:47:16 UTC) #13
eostroukhov
Thank you for the review. I addressed your comments (and added a simple test) - ...
3 years, 11 months ago (2017-01-20 18:43:19 UTC) #16
jsbell
https://codereview.chromium.org/2642943002/diff/40001/content/browser/indexed_db/indexed_db_factory_impl.h File content/browser/indexed_db/indexed_db_factory_impl.h (right): https://codereview.chromium.org/2642943002/diff/40001/content/browser/indexed_db/indexed_db_factory_impl.h#newcode52 content/browser/indexed_db/indexed_db_factory_impl.h:52: bool forced_close) override; nit: it's 'force_close' (no 'd') elsewhere ...
3 years, 11 months ago (2017-01-20 19:34:25 UTC) #17
eostroukhov
Thanks for the review. I updated the CL. https://codereview.chromium.org/2642943002/diff/40001/content/browser/indexed_db/indexed_db_factory_impl.h File content/browser/indexed_db/indexed_db_factory_impl.h (right): https://codereview.chromium.org/2642943002/diff/40001/content/browser/indexed_db/indexed_db_factory_impl.h#newcode52 content/browser/indexed_db/indexed_db_factory_impl.h:52: bool ...
3 years, 11 months ago (2017-01-20 19:45:26 UTC) #20
jsbell
lgtm with just one tidbit https://codereview.chromium.org/2642943002/diff/60001/content/browser/indexed_db/indexed_db_factory_impl.cc File content/browser/indexed_db/indexed_db_factory_impl.cc (right): https://codereview.chromium.org/2642943002/diff/60001/content/browser/indexed_db/indexed_db_factory_impl.cc#newcode286 content/browser/indexed_db/indexed_db_factory_impl.cc:286: database->DeleteDatabase(callbacks, false /* force_close ...
3 years, 11 months ago (2017-01-20 23:33:40 UTC) #23
eostroukhov
Thank you for the review, submitting now. https://codereview.chromium.org/2642943002/diff/60001/content/browser/indexed_db/indexed_db_factory_impl.cc File content/browser/indexed_db/indexed_db_factory_impl.cc (right): https://codereview.chromium.org/2642943002/diff/60001/content/browser/indexed_db/indexed_db_factory_impl.cc#newcode286 content/browser/indexed_db/indexed_db_factory_impl.cc:286: database->DeleteDatabase(callbacks, false ...
3 years, 11 months ago (2017-01-23 19:22:22 UTC) #26
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/2642943002/100001
3 years, 11 months ago (2017-01-23 19:22:52 UTC) #27
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/1470b1f47385ebd166e6ca60a34a770c0f4c40f6
3 years, 11 months ago (2017-01-23 21:14:29 UTC) #30
Wez
Hallo wfh@chromium.org! Due to a depot_tools patch which mistakenly removed the OWNERS check for non-source ...
3 years, 10 months ago (2017-02-08 02:09:37 UTC) #33
Will Harris
https://codereview.chromium.org/2642943002/diff/100001/content/common/indexed_db/indexed_db.mojom File content/common/indexed_db/indexed_db.mojom (right): https://codereview.chromium.org/2642943002/diff/100001/content/common/indexed_db/indexed_db.mojom#newcode331 content/common/indexed_db/indexed_db.mojom:331: DeleteDatabase(associated Callbacks callbacks, url.mojom.Origin origin, who calls this DeleteDatabase ...
3 years, 10 months ago (2017-02-13 18:33:01 UTC) #34
eostroukhov
On 2017/02/13 18:33:01, Will Harris wrote: > https://codereview.chromium.org/2642943002/diff/100001/content/common/indexed_db/indexed_db.mojom > File content/common/indexed_db/indexed_db.mojom (right): > > https://codereview.chromium.org/2642943002/diff/100001/content/common/indexed_db/indexed_db.mojom#newcode331 ...
3 years, 10 months ago (2017-02-13 18:52:57 UTC) #35
Will Harris
3 years, 10 months ago (2017-02-13 19:14:11 UTC) #36
lgtm

Powered by Google App Engine
This is Rietveld 408576698