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

Unified Diff: components/dom_distiller/core/fake_distiller.cc

Issue 178303004: Add incremental updates for multipage distillation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile by adding a header. Created 6 years, 10 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/fake_distiller.cc
diff --git a/components/dom_distiller/core/fake_distiller.cc b/components/dom_distiller/core/fake_distiller.cc
index e6cc9797a254ec9e4faeaf03e20e8c7f086a461d..b5e5d55e9c39d781190b9c70b1fcf03d023bd566 100644
--- a/components/dom_distiller/core/fake_distiller.cc
+++ b/components/dom_distiller/core/fake_distiller.cc
@@ -21,10 +21,13 @@ FakeDistiller::FakeDistiller(bool execute_callback)
FakeDistiller::~FakeDistiller() { Die(); }
-void FakeDistiller::DistillPage(const GURL& url,
- const DistillerCallback& callback) {
+void FakeDistiller::DistillPage(
+ const GURL& url,
+ const ArticleDistillationCallback& article_callback,
+ const PageDistillationCallback& page_callback) {
url_ = url;
- callback_ = callback;
+ article_callback_ = article_callback;
+ page_callback_ = page_callback;
if (execute_callback_) {
scoped_ptr<DistilledArticleProto> proto(new DistilledArticleProto);
proto->add_pages()->set_url(url_.spec());
@@ -43,9 +46,9 @@ void FakeDistiller::RunDistillerCallback(
void FakeDistiller::RunDistillerCallbackInternal(
scoped_ptr<DistilledArticleProto> proto) {
- EXPECT_FALSE(callback_.is_null());
- callback_.Run(proto.Pass());
- callback_.Reset();
+ EXPECT_FALSE(article_callback_.is_null());
+ article_callback_.Run(proto.Pass());
+ article_callback_.Reset();
}
} // namespace test

Powered by Google App Engine
This is Rietveld 408576698