Extract the in-memory model from DomDistillerStore
commit96a45d875ae0cb3a26c2260c711e651f363985b9
authorcjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 22 Oct 2013 21:17:56 +0000 (22 21:17 +0000)
committercjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 22 Oct 2013 21:17:56 +0000 (22 21:17 +0000)
tree1b82776755cd216f54eabc07560249fad90de198
parent5fd860aba4fb327e73ce1824a037c83bdb5db1ce
Extract the in-memory model from DomDistillerStore

This moves interaction with the in-memory model from the store to its
own class: DomDistillerModel. This also adds two ways to lookup entries
to both the store and the model, GetEntryById and GetEntryByUrl.

BUG=288015

Review URL: https://codereview.chromium.org/26574002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230207 0039d316-1c4b-4281-b951-d872f2087c98
components/components_tests.gyp
components/dom_distiller.gypi
components/dom_distiller/core/article_entry.cc
components/dom_distiller/core/article_entry.h
components/dom_distiller/core/dom_distiller_model.cc [new file with mode: 0644]
components/dom_distiller/core/dom_distiller_model.h [new file with mode: 0644]
components/dom_distiller/core/dom_distiller_model_unittest.cc [new file with mode: 0644]
components/dom_distiller/core/dom_distiller_store.cc
components/dom_distiller/core/dom_distiller_store.h
components/dom_distiller/core/dom_distiller_store_unittest.cc