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

Unified Diff: components/dom_distiller/core/dom_distiller_service.h

Issue 189833002: Add a DistilledContentStore (and an in-memory impl) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/dom_distiller/core/dom_distiller_service.h
diff --git a/components/dom_distiller/core/dom_distiller_service.h b/components/dom_distiller/core/dom_distiller_service.h
index 8f4ea70f7bed5f4a69d685deb205e92a9977e02e..dcaac91f6280d0348017b335b1a5e34f2a334937 100644
--- a/components/dom_distiller/core/dom_distiller_service.h
+++ b/components/dom_distiller/core/dom_distiller_service.h
@@ -23,6 +23,7 @@ class SyncableService;
namespace dom_distiller {
class DistilledArticleProto;
+class DistilledContentStore;
class DistillerFactory;
class DomDistillerObserver;
class DomDistillerStoreInterface;
@@ -103,6 +104,9 @@ class DomDistillerService : public DomDistillerServiceInterface {
void AddDistilledPageToList(const ArticleEntry& entry,
const DistilledArticleProto* article_proto,
bool distillation_succeeded);
+ void AddDistilledContentToStore(const ArticleEntry& entry,
+ const DistilledArticleProto* article_proto,
+ bool distillation_succeeded);
TaskTracker* CreateTaskTracker(const ArticleEntry& entry);
@@ -115,6 +119,7 @@ class DomDistillerService : public DomDistillerServiceInterface {
TaskTracker* GetOrCreateTaskTrackerForEntry(const ArticleEntry& entry);
scoped_ptr<DomDistillerStoreInterface> store_;
+ scoped_ptr<DistilledContentStore> content_store_;
scoped_ptr<DistillerFactory> distiller_factory_;
typedef ScopedVector<TaskTracker> TaskList;

Powered by Google App Engine
This is Rietveld 408576698