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

Issue 189833002: Add a DistilledContentStore (and an in-memory impl) (Closed)

Created:
6 years, 9 months ago by cjhopman
Modified:
6 years, 8 months ago
Reviewers:
shashi, nyquist
CC:
chromium-reviews
Visibility:
Public.

Description

Add a DistilledContentStore (and an in-memory impl) This is the interface to whatever is used for storing and fetching distilled content. In the future, this should be provided by sync attachments. For now, we need something. The interface is a very simple pair of functions, SaveContent and LoadContent, both asynchronous. There is a simple in-memory implementation that just stores saved content in a map. The DomDistillerService creates the store and uses a save callback on the TaskTracker to save content to it. The TaskTracker receives a pointer to the store and uses it when StartBlobFetcher is called. BUG=288015 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264624

Patch Set 1 : #

Total comments: 19

Patch Set 2 : #

Total comments: 13

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+452 lines, -49 lines) Patch
M components/dom_distiller.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A components/dom_distiller/core/distilled_content_store.h View 1 2 3 4 5 1 chunk +61 lines, -0 lines 0 comments Download
A components/dom_distiller/core/distilled_content_store.cc View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
M components/dom_distiller/core/dom_distiller_service.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M components/dom_distiller/core/dom_distiller_service.cc View 1 6 chunks +9 lines, -2 lines 0 comments Download
M components/dom_distiller/core/task_tracker.h View 1 2 3 3 chunks +26 lines, -9 lines 0 comments Download
M components/dom_distiller/core/task_tracker.cc View 1 2 3 4 7 chunks +93 lines, -32 lines 0 comments Download
M components/dom_distiller/core/task_tracker_unittest.cc View 1 2 3 4 5 9 chunks +210 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
cjhopman
nyquist: *
6 years, 9 months ago (2014-03-12 22:52:32 UTC) #1
shashi
https://codereview.chromium.org/189833002/diff/60001/components/dom_distiller.gypi File components/dom_distiller.gypi (right): https://codereview.chromium.org/189833002/diff/60001/components/dom_distiller.gypi#newcode63 components/dom_distiller.gypi:63: 'dom_distiller/core/distilled_content_store.h', sort. https://codereview.chromium.org/189833002/diff/60001/components/dom_distiller/core/distilled_content_store.cc File components/dom_distiller/core/distilled_content_store.cc (right): https://codereview.chromium.org/189833002/diff/60001/components/dom_distiller/core/distilled_content_store.cc#newcode1 components/dom_distiller/core/distilled_content_store.cc:1: // ...
6 years, 9 months ago (2014-03-13 00:32:44 UTC) #2
cjhopman
https://codereview.chromium.org/189833002/diff/60001/components/dom_distiller.gypi File components/dom_distiller.gypi (right): https://codereview.chromium.org/189833002/diff/60001/components/dom_distiller.gypi#newcode63 components/dom_distiller.gypi:63: 'dom_distiller/core/distilled_content_store.h', On 2014/03/13 00:32:45, shashi wrote: > sort. Done. ...
6 years, 9 months ago (2014-03-18 16:06:10 UTC) #3
shashi
https://chromiumcodereview.appspot.com/189833002/diff/80001/components/dom_distiller/core/distilled_content_store.cc File components/dom_distiller/core/distilled_content_store.cc (right): https://chromiumcodereview.appspot.com/189833002/diff/80001/components/dom_distiller/core/distilled_content_store.cc#newcode31 components/dom_distiller/core/distilled_content_store.cc:31: ContentMap::iterator it = cache_.find(entry.entry_id()); nit: const_iterator? https://chromiumcodereview.appspot.com/189833002/diff/80001/components/dom_distiller/core/distilled_content_store.h File components/dom_distiller/core/distilled_content_store.h ...
6 years, 9 months ago (2014-03-18 21:14:57 UTC) #4
nyquist
https://codereview.chromium.org/189833002/diff/80001/components/dom_distiller/core/distilled_content_store.h File components/dom_distiller/core/distilled_content_store.h (right): https://codereview.chromium.org/189833002/diff/80001/components/dom_distiller/core/distilled_content_store.h#newcode51 components/dom_distiller/core/distilled_content_store.h:51: }; DISALLOW_COPY_AND_ASSIGN? https://codereview.chromium.org/189833002/diff/80001/components/dom_distiller/core/task_tracker.cc File components/dom_distiller/core/task_tracker.cc (right): https://codereview.chromium.org/189833002/diff/80001/components/dom_distiller/core/task_tracker.cc#newcode172 components/dom_distiller/core/task_tracker.cc:172: bool ...
6 years, 8 months ago (2014-04-10 19:00:12 UTC) #5
cjhopman
This is now a bit more disciplined about handling the multiple sources of distilled articles. ...
6 years, 8 months ago (2014-04-11 22:37:21 UTC) #6
nyquist
lgtm https://codereview.chromium.org/189833002/diff/130009/components/dom_distiller/core/distilled_content_store.h File components/dom_distiller/core/distilled_content_store.h (right): https://codereview.chromium.org/189833002/diff/130009/components/dom_distiller/core/distilled_content_store.h#newcode35 components/dom_distiller/core/distilled_content_store.h:35: class InMemoryContentStore : public DistilledContentStore { This is ...
6 years, 8 months ago (2014-04-14 22:42:21 UTC) #7
cjhopman
The CQ bit was checked by cjhopman@chromium.org
6 years, 8 months ago (2014-04-15 01:04:25 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cjhopman@chromium.org/189833002/180001
6 years, 8 months ago (2014-04-15 01:05:36 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-15 01:53:08 UTC) #10
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=61386
6 years, 8 months ago (2014-04-15 01:53:08 UTC) #11
cjhopman
The CQ bit was checked by cjhopman@chromium.org
6 years, 8 months ago (2014-04-17 17:59:59 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cjhopman@chromium.org/189833002/180001
6 years, 8 months ago (2014-04-17 18:01:07 UTC) #13
commit-bot: I haz the power
6 years, 8 months ago (2014-04-17 20:29:44 UTC) #14
Message was sent while issue was closed.
Change committed as 264624

Powered by Google App Engine
This is Rietveld 408576698