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

Issue 17033004: Tell IDB frontend about data loss (Closed)

Created:
7 years, 6 months ago by dgrogan
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, alecflett
Visibility:
Public.

Description

Tell IDB frontend about data loss. When IDB performs "cleanup" on its backing store pass a flag indicating such to the frontend, which will expose it to JS. Blink side https://codereview.chromium.org/17060008/ BUG=172626 R=aedla@chromium.org, cevans@chromium.org, jam@chromium.org, jamesr@chromium.org, jsbell@chromium.org, tsepez@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208579

Patch Set 1 #

Patch Set 2 : remove debug #

Total comments: 22

Patch Set 3 : address comments #

Patch Set 4 : change to enum #

Patch Set 5 : ToT #

Total comments: 8

Patch Set 6 : address comments #

Patch Set 7 : DataLoss prefix #

Total comments: 1

Patch Set 8 : ToT #

Patch Set 9 : use IPC_ENUM_TRAITS_MAX_VALUE #

Total comments: 2

Patch Set 10 : remove superfluous backslash #

Patch Set 11 : Only enum is being used from WebIDBCallbacks.h, is it ok to include? #

Patch Set 12 : ToT #

Patch Set 13 : ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -32 lines) Patch
M content/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_callbacks.h View 1 2 3 3 chunks +6 lines, -2 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_callbacks.cc View 1 2 3 4 5 4 chunks +9 lines, -4 lines 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +11 lines, -3 lines 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_callbacks_wrapper.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_callbacks_wrapper.cc View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database.h View 1 2 3 2 chunks +14 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_database.cc View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +49 lines, -8 lines 0 comments Download
M content/browser/indexed_db/indexed_db_factory.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +14 lines, -6 lines 0 comments Download
M content/child/indexed_db/indexed_db_dispatcher.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M content/common/indexed_db/indexed_db_messages.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M content/test/data/indexeddb/open_bad_db.js View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 36 (0 generated)
dgrogan
Josh, could you review this? I didn't add the plumbing for a new attribute on ...
7 years, 6 months ago (2013-06-14 20:16:29 UTC) #1
jsbell
overall LGTM with some nits. https://codereview.chromium.org/17033004/diff/2001/content/browser/indexed_db/indexed_db_backing_store_unittest.cc File content/browser/indexed_db/indexed_db_backing_store_unittest.cc (right): https://codereview.chromium.org/17033004/diff/2001/content/browser/indexed_db/indexed_db_backing_store_unittest.cc#newcode340 content/browser/indexed_db/indexed_db_backing_store_unittest.cc:340: return OpenBackingStore( Add EXPECT_FALSE(data_loss) ...
7 years, 6 months ago (2013-06-14 20:42:58 UTC) #2
dgrogan
https://codereview.chromium.org/17033004/diff/2001/content/browser/indexed_db/indexed_db_backing_store_unittest.cc File content/browser/indexed_db/indexed_db_backing_store_unittest.cc (right): https://codereview.chromium.org/17033004/diff/2001/content/browser/indexed_db/indexed_db_backing_store_unittest.cc#newcode340 content/browser/indexed_db/indexed_db_backing_store_unittest.cc:340: return OpenBackingStore( On 2013/06/14 20:42:58, jsbell wrote: > Add ...
7 years, 6 months ago (2013-06-14 22:06:43 UTC) #3
dgrogan
Josh, could you take another look at this? It uses the enum declared in the ...
7 years, 6 months ago (2013-06-17 22:52:43 UTC) #4
jsbell
lgtm with DCHECK/style nits https://codereview.chromium.org/17033004/diff/19001/content/browser/in_process_webkit/indexed_db_callbacks.cc File content/browser/in_process_webkit/indexed_db_callbacks.cc (right): https://codereview.chromium.org/17033004/diff/19001/content/browser/in_process_webkit/indexed_db_callbacks.cc#newcode58 content/browser/in_process_webkit/indexed_db_callbacks.cc:58: const IndexedDBDatabaseMetadata&, Not new in ...
7 years, 6 months ago (2013-06-17 23:21:48 UTC) #5
dgrogan
https://codereview.chromium.org/17033004/diff/19001/content/browser/in_process_webkit/indexed_db_callbacks.cc File content/browser/in_process_webkit/indexed_db_callbacks.cc (right): https://codereview.chromium.org/17033004/diff/19001/content/browser/in_process_webkit/indexed_db_callbacks.cc#newcode58 content/browser/in_process_webkit/indexed_db_callbacks.cc:58: const IndexedDBDatabaseMetadata&, On 2013/06/17 23:21:48, jsbell wrote: > Not ...
7 years, 6 months ago (2013-06-17 23:52:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/17033004/11016
7 years, 6 months ago (2013-06-18 14:52:51 UTC) #7
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=9954
7 years, 6 months ago (2013-06-18 15:01:28 UTC) #8
dgrogan
tsepez, could you review this as an IPC owner?
7 years, 6 months ago (2013-06-18 15:03:03 UTC) #9
dgrogan
cevans@, looks like Tom is OOO. Could you review this as an IPC owner?
7 years, 6 months ago (2013-06-18 23:34:09 UTC) #10
Chris Evans
On 2013/06/18 23:34:09, dgrogan wrote: > cevans@, looks like Tom is OOO. Could you review ...
7 years, 6 months ago (2013-06-18 23:39:15 UTC) #11
aedla
https://codereview.chromium.org/17033004/diff/11016/content/common/indexed_db/indexed_db_messages.h File content/common/indexed_db/indexed_db_messages.h (right): https://codereview.chromium.org/17033004/diff/11016/content/common/indexed_db/indexed_db_messages.h#newcode290 content/common/indexed_db/indexed_db_messages.h:290: IPC_STRUCT_MEMBER(int32, data_loss) Could this be sent as WebKit::WebIDBCallbacks::DataLoss instead? ...
7 years, 6 months ago (2013-06-19 10:56:51 UTC) #12
dgrogan
aedla, ptal. What happens if a compromised renderer tries to send a value that is ...
7 years, 6 months ago (2013-06-19 16:21:21 UTC) #13
aedla
On 2013/06/19 16:21:21, dgrogan wrote: > aedla, ptal. LGTM > What happens if a compromised ...
7 years, 6 months ago (2013-06-19 19:20:12 UTC) #14
aedla
https://codereview.chromium.org/17033004/diff/43001/content/common/indexed_db/indexed_db_messages.h File content/common/indexed_db/indexed_db_messages.h (right): https://codereview.chromium.org/17033004/diff/43001/content/common/indexed_db/indexed_db_messages.h#newcode27 content/common/indexed_db/indexed_db_messages.h:27: IPC_ENUM_TRAITS_MAX_VALUE(WebKit::WebIDBCallbacks::DataLoss, \ nit: I think \ is not actually ...
7 years, 6 months ago (2013-06-19 19:20:35 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/17033004/43001
7 years, 6 months ago (2013-06-19 19:20:45 UTC) #16
dgrogan
https://codereview.chromium.org/17033004/diff/43001/content/common/indexed_db/indexed_db_messages.h File content/common/indexed_db/indexed_db_messages.h (right): https://codereview.chromium.org/17033004/diff/43001/content/common/indexed_db/indexed_db_messages.h#newcode27 content/common/indexed_db/indexed_db_messages.h:27: IPC_ENUM_TRAITS_MAX_VALUE(WebKit::WebIDBCallbacks::DataLoss, \ On 2013/06/19 19:20:35, aedla wrote: > nit: ...
7 years, 6 months ago (2013-06-19 19:22:38 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/17033004/43002
7 years, 6 months ago (2013-06-19 19:23:34 UTC) #18
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=10469
7 years, 6 months ago (2013-06-19 19:34:20 UTC) #19
dgrogan
cevans@, seems that aedla@ is not an OWNER. Could you rubber stamp his LGTM?
7 years, 6 months ago (2013-06-19 19:36:49 UTC) #20
dgrogan
ping scarybeasts
7 years, 6 months ago (2013-06-20 16:15:33 UTC) #21
dgrogan
inferno, could you review this? aedla and jsbell already reviewed but it needs an lgtm ...
7 years, 6 months ago (2013-06-21 16:26:18 UTC) #22
Chris Evans
On 2013/06/21 16:26:18, dgrogan wrote: > inferno, could you review this? > > aedla and ...
7 years, 6 months ago (2013-06-21 18:02:56 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/17033004/43002
7 years, 6 months ago (2013-06-21 18:03:48 UTC) #24
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=11419
7 years, 6 months ago (2013-06-21 18:17:00 UTC) #25
dgrogan
jamesr, I added an enum to third_party/WebKit/public/platform/WebIDBCallbacks.h that is used in content/browser. Could you comment ...
7 years, 6 months ago (2013-06-21 23:28:31 UTC) #26
jamesr
That's fine - WebIDBCallbacks.h has no symbols, so it's not an issue. lgtm (although I ...
7 years, 6 months ago (2013-06-21 23:44:47 UTC) #27
dgrogan
sky@, could you rubberstamp this as owner of content/browser?
7 years, 6 months ago (2013-06-21 23:48:04 UTC) #28
Tom Sepez
Messages LGTM (sorry to take so long, was out last week).
7 years, 6 months ago (2013-06-24 17:28:47 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/17033004/68001
7 years, 6 months ago (2013-06-24 18:41:33 UTC) #30
dgrogan
jam@, could you review content/browser/DEPS as an OWNER of content? jamesr already gave it an ...
7 years, 6 months ago (2013-06-24 23:43:40 UTC) #31
jam
On 2013/06/24 23:43:40, dgrogan wrote: > jam@, could you review content/browser/DEPS as an OWNER of ...
7 years, 6 months ago (2013-06-25 18:03:45 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/17033004/68001
7 years, 6 months ago (2013-06-25 19:48:36 UTC) #33
commit-bot: I haz the power
Failed to apply patch for content/browser/indexed_db/indexed_db_backing_store.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 6 months ago (2013-06-25 19:48:41 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/17033004/79001
7 years, 6 months ago (2013-06-25 20:06:00 UTC) #35
dgrogan
7 years, 6 months ago (2013-06-25 23:40:53 UTC) #36
Message was sent while issue was closed.
Committed patchset #13 manually as r208579 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698