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

Unified Diff: components/dom_distiller/content/dom_distiller_viewer_source.cc

Issue 178303004: Add incremental updates for multipage distillation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. 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/content/dom_distiller_viewer_source.cc
diff --git a/components/dom_distiller/content/dom_distiller_viewer_source.cc b/components/dom_distiller/content/dom_distiller_viewer_source.cc
index 375a542c77aade81760c01823c9f37f4d46cf2fe..53581175d08e31a7fb096902a0ec79432c3ffbf5 100644
--- a/components/dom_distiller/content/dom_distiller_viewer_source.cc
+++ b/components/dom_distiller/content/dom_distiller_viewer_source.cc
@@ -58,6 +58,9 @@ class RequestViewerHandle : public ViewRequestDelegate {
virtual void OnArticleReady(const DistilledArticleProto* article_proto)
OVERRIDE;
+ virtual void OnArticleUpdated(ArticleDistillationUpdate article_update)
+ OVERRIDE;
+
void TakeViewerHandle(scoped_ptr<ViewerHandle> viewer_handle);
private:
@@ -101,6 +104,11 @@ void RequestViewerHandle::OnArticleReady(
base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);
}
+void RequestViewerHandle::OnArticleUpdated(
+ ArticleDistillationUpdate article_update) {
+ // TODO(nyquist): Add support for displaying pages incrementally.
+}
+
void RequestViewerHandle::TakeViewerHandle(
scoped_ptr<ViewerHandle> viewer_handle) {
viewer_handle_ = viewer_handle.Pass();

Powered by Google App Engine
This is Rietveld 408576698