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

Issue 717793007: Add attachments support to DomDistillerStore (Closed)

Created:
6 years, 1 month ago by cjhopman
Modified:
6 years, 1 month ago
Reviewers:
nyquist, maniscalco, pavely
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+watch_chromium.org, zea+watch_chromium.org, albertb+watch_chromium.org, maniscalco+watch_chromium.org, pavely
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add attachments support to DomDistillerStore The DomDistillerStore now provides simple, asynchronous Get and Update for attachments. When an update is requested, we add the attachments to the attachment store, and when that succeeds update the model/sync/db entry. So, while non-attachment updates are applied asynchronously, that is not the case for attachment updates. Most of the mapping between the ids stored in the specifics and the actual attachment objects is handled by ArticleAttachmentsData. BUG=430552 Committed: https://crrev.com/ce6d65fc6d4030cad4db59d6aa6d6285b4de660c Cr-Commit-Position: refs/heads/master@{#304917}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Move some unrelated stuff out #

Total comments: 28

Patch Set 4 : #

Total comments: 5

Patch Set 5 : #

Total comments: 5

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -5 lines) Patch
M components/dom_distiller.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M components/dom_distiller/core/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A components/dom_distiller/core/article_attachments_data.h View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download
A components/dom_distiller/core/article_attachments_data.cc View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
M components/dom_distiller/core/article_entry.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/dom_distiller/core/article_entry.cc View 2 chunks +3 lines, -1 line 0 comments Download
M components/dom_distiller/core/dom_distiller_store.h View 1 2 3 4 5 6 chunks +50 lines, -0 lines 0 comments Download
M components/dom_distiller/core/dom_distiller_store.cc View 1 2 3 4 5 6 chunks +134 lines, -0 lines 0 comments Download
M components/dom_distiller/core/dom_distiller_store_unittest.cc View 1 2 2 chunks +56 lines, -0 lines 0 comments Download
M sync/protocol/article_specifics.proto View 1 2 3 4 1 chunk +8 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
cjhopman
maniscalco: ptal.
6 years, 1 month ago (2014-11-12 02:51:02 UTC) #2
maniscalco
https://codereview.chromium.org/717793007/diff/40001/components/dom_distiller/core/article_attachments_data.cc File components/dom_distiller/core/article_attachments_data.cc (right): https://codereview.chromium.org/717793007/diff/40001/components/dom_distiller/core/article_attachments_data.cc#newcode50 components/dom_distiller/core/article_attachments_data.cc:50: } nit: // namespace dom_distiller https://codereview.chromium.org/717793007/diff/40001/components/dom_distiller/core/article_attachments_data.h File components/dom_distiller/core/article_attachments_data.h (right): ...
6 years, 1 month ago (2014-11-12 18:59:44 UTC) #3
cjhopman
https://codereview.chromium.org/717793007/diff/40001/components/dom_distiller/core/article_attachments_data.cc File components/dom_distiller/core/article_attachments_data.cc (right): https://codereview.chromium.org/717793007/diff/40001/components/dom_distiller/core/article_attachments_data.cc#newcode50 components/dom_distiller/core/article_attachments_data.cc:50: } On 2014/11/12 18:59:43, maniscalco wrote: > nit: // ...
6 years, 1 month ago (2014-11-14 02:45:15 UTC) #6
pavely
I only had couple of tiny comments. I'll figure out async initialization of OnDiskAttachmentStore story ...
6 years, 1 month ago (2014-11-17 19:09:01 UTC) #8
maniscalco
LGTM modulo pavely's feedback. https://codereview.chromium.org/717793007/diff/100001/components/dom_distiller/core/article_attachments_data.h File components/dom_distiller/core/article_attachments_data.h (right): https://codereview.chromium.org/717793007/diff/100001/components/dom_distiller/core/article_attachments_data.h#newcode17 components/dom_distiller/core/article_attachments_data.h:17: // When stored, article attachments ...
6 years, 1 month ago (2014-11-17 19:12:48 UTC) #9
cjhopman
https://codereview.chromium.org/717793007/diff/100001/components/dom_distiller/core/dom_distiller_store.cc File components/dom_distiller/core/dom_distiller_store.cc (right): https://codereview.chromium.org/717793007/diff/100001/components/dom_distiller/core/dom_distiller_store.cc#newcode168 components/dom_distiller/core/dom_distiller_store.cc:168: success = missing->empty(); On 2014/11/17 19:09:00, pavely wrote: > ...
6 years, 1 month ago (2014-11-18 20:57:45 UTC) #10
cjhopman
6 years, 1 month ago (2014-11-18 20:58:19 UTC) #12
pavely
lgtm
6 years, 1 month ago (2014-11-18 21:04:46 UTC) #13
nyquist
lgtm https://codereview.chromium.org/717793007/diff/120001/components/dom_distiller/core/dom_distiller_store.cc File components/dom_distiller/core/dom_distiller_store.cc (right): https://codereview.chromium.org/717793007/diff/120001/components/dom_distiller/core/dom_distiller_store.cc#newcode222 components/dom_distiller/core/dom_distiller_store.cc:222: DCHECK(VerifyAttachmentsUnchanged(entry, model_)); This always returns true, does it ...
6 years, 1 month ago (2014-11-19 02:26:38 UTC) #14
cjhopman
https://codereview.chromium.org/717793007/diff/120001/components/dom_distiller/core/dom_distiller_store.cc File components/dom_distiller/core/dom_distiller_store.cc (right): https://codereview.chromium.org/717793007/diff/120001/components/dom_distiller/core/dom_distiller_store.cc#newcode222 components/dom_distiller/core/dom_distiller_store.cc:222: DCHECK(VerifyAttachmentsUnchanged(entry, model_)); On 2014/11/19 02:26:37, nyquist wrote: > This ...
6 years, 1 month ago (2014-11-19 19:31:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/717793007/140001
6 years, 1 month ago (2014-11-19 22:20:27 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:140001)
6 years, 1 month ago (2014-11-19 23:13:19 UTC) #18
commit-bot: I haz the power
6 years, 1 month ago (2014-11-19 23:14:36 UTC) #19
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ce6d65fc6d4030cad4db59d6aa6d6285b4de660c
Cr-Commit-Position: refs/heads/master@{#304917}

Powered by Google App Engine
This is Rietveld 408576698