| Index: ios/chrome/browser/dom_distiller/distiller_viewer.h
|
| diff --git a/ios/chrome/browser/dom_distiller/distiller_viewer.h b/ios/chrome/browser/dom_distiller/distiller_viewer.h
|
| index 629e74546153252eaf6fdaac5ead71140fcb8cc1..1cb4f843001325a9e871f33e36eca6e634b206a6 100644
|
| --- a/ios/chrome/browser/dom_distiller/distiller_viewer.h
|
| +++ b/ios/chrome/browser/dom_distiller/distiller_viewer.h
|
| @@ -34,17 +34,18 @@ class DistillerViewer : public DomDistillerRequestViewBase {
|
| const DistillationFinishedCallback& callback);
|
| ~DistillerViewer() override;
|
|
|
| - void SendJavaScript(const std::string& buffer) override;
|
| + void OnArticleReady(
|
| + const dom_distiller::DistilledArticleProto* article_proto) override;
|
|
|
| - std::string GetJavaScriptBuffer();
|
| + void SendJavaScript(const std::string& buffer) override;
|
|
|
| private:
|
| // The url of the distilled page.
|
| const GURL url_;
|
| - // Interface for accessing preferences for distilled pages.
|
| - scoped_ptr<DistilledPagePrefs> distilled_page_prefs_;
|
| // JavaScript buffer.
|
| std::string js_buffer_;
|
| + // Callback to run once distillation is complete.
|
| + const DistillationFinishedCallback callback_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(DistillerViewer);
|
| };
|
|
|