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

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

Issue 146843010: Add support for multipage distillation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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.h
diff --git a/components/dom_distiller/core/fake_distiller.h b/components/dom_distiller/core/fake_distiller.h
index dbb00d69cdbae0af7d7dc0ccc5aab4d5f326c956..98ab7096dc942be44fb1a0841fc913e540b95701 100644
--- a/components/dom_distiller/core/fake_distiller.h
+++ b/components/dom_distiller/core/fake_distiller.h
@@ -27,27 +27,21 @@ class MockDistillerFactory : public DistillerFactory {
class FakeDistiller : public Distiller {
public:
- FakeDistiller(bool execute_callback);
+ explicit FakeDistiller(bool execute_callback);
virtual ~FakeDistiller();
MOCK_METHOD0(Die, void());
virtual void DistillPage(const GURL& url,
- const DistillerCallback& callback) OVERRIDE {
- url_ = url;
- callback_ = callback;
- if (execute_callback_) {
- RunDistillerCallback(make_scoped_ptr(new DistilledPageProto));
- }
- }
+ const DistillerCallback& callback) OVERRIDE;
- void RunDistillerCallback(scoped_ptr<DistilledPageProto> proto);
+ void RunDistillerCallback(scoped_ptr<DistilledArticleProto> proto);
GURL GetUrl() { return url_; }
DistillerCallback GetCallback() { return callback_; }
private:
- void RunDistillerCallbackInternal(scoped_ptr<DistilledPageProto> proto);
+ void RunDistillerCallbackInternal(scoped_ptr<DistilledArticleProto> proto);
bool execute_callback_;
GURL url_;
« no previous file with comments | « components/dom_distiller/core/dom_distiller_service_unittest.cc ('k') | components/dom_distiller/core/fake_distiller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698