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

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

Issue 286583002: Pull DomDistillerOptions up to the DistillerFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: :/ Created 6 years, 7 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/distiller.h
diff --git a/components/dom_distiller/core/distiller.h b/components/dom_distiller/core/distiller.h
index 106967b760ee8cdf702529669a5621dba5a18a60..648949e2132cee44f637f441acf29d8014aff51b 100644
--- a/components/dom_distiller/core/distiller.h
+++ b/components/dom_distiller/core/distiller.h
@@ -56,19 +56,22 @@ class DistillerFactory {
class DistillerFactoryImpl : public DistillerFactory {
public:
DistillerFactoryImpl(
- scoped_ptr<DistillerURLFetcherFactory> distiller_url_fetcher_factory);
+ scoped_ptr<DistillerURLFetcherFactory> distiller_url_fetcher_factory,
+ const dom_distiller::proto::DomDistillerOptions& dom_distiller_options);
virtual ~DistillerFactoryImpl();
virtual scoped_ptr<Distiller> CreateDistiller() OVERRIDE;
private:
scoped_ptr<DistillerURLFetcherFactory> distiller_url_fetcher_factory_;
+ dom_distiller::proto::DomDistillerOptions dom_distiller_options_;
};
// Distills a article from a page and associated pages.
class DistillerImpl : public Distiller {
public:
DistillerImpl(
- const DistillerURLFetcherFactory& distiller_url_fetcher_factory);
+ const DistillerURLFetcherFactory& distiller_url_fetcher_factory,
+ const dom_distiller::proto::DomDistillerOptions& dom_distiller_options);
virtual ~DistillerImpl();
virtual void DistillPage(
@@ -147,6 +150,8 @@ class DistillerImpl : public Distiller {
const DistillerURLFetcherFactory& distiller_url_fetcher_factory_;
scoped_ptr<DistillerPage> distiller_page_;
+
+ dom_distiller::proto::DomDistillerOptions dom_distiller_options_;
DistillationFinishedCallback finished_cb_;
DistillationUpdateCallback update_cb_;

Powered by Google App Engine
This is Rietveld 408576698