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

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

Issue 254483003: Start requiring DistillerPage for calls to DomDistillerService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 8196757d959a029d7b9d70802724adf58e41de77..706899a76e56bb38a602b6aa413f0f2272998eab 100644
--- a/components/dom_distiller/core/distiller.h
+++ b/components/dom_distiller/core/distiller.h
@@ -41,6 +41,7 @@ class Distiller {
// a distilled page is added and |finished_cb| will be invoked once
// distillation is completed.
virtual void DistillPage(const GURL& url,
+ scoped_ptr<DistillerPage> distiller_page,
const DistillationFinishedCallback& finished_cb,
const DistillationUpdateCallback& update_cb) = 0;
};
@@ -55,13 +56,11 @@ class DistillerFactory {
class DistillerFactoryImpl : public DistillerFactory {
public:
DistillerFactoryImpl(
- scoped_ptr<DistillerPageFactory> distiller_page_factory,
scoped_ptr<DistillerURLFetcherFactory> distiller_url_fetcher_factory);
virtual ~DistillerFactoryImpl();
virtual scoped_ptr<Distiller> CreateDistiller() OVERRIDE;
private:
- scoped_ptr<DistillerPageFactory> distiller_page_factory_;
scoped_ptr<DistillerURLFetcherFactory> distiller_url_fetcher_factory_;
};
@@ -69,11 +68,11 @@ class DistillerFactoryImpl : public DistillerFactory {
class DistillerImpl : public Distiller {
public:
DistillerImpl(
- const DistillerPageFactory& distiller_page_factory,
const DistillerURLFetcherFactory& distiller_url_fetcher_factory);
virtual ~DistillerImpl();
virtual void DistillPage(const GURL& url,
+ scoped_ptr<DistillerPage> distiller_page,
const DistillationFinishedCallback& finished_cb,
const DistillationUpdateCallback& update_cb)
OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698