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

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

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
« no previous file with comments | « components/dom_distiller/core/distiller_page.h ('k') | components/dom_distiller/core/distiller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/core/distiller_page.cc
diff --git a/components/dom_distiller/core/distiller_page.cc b/components/dom_distiller/core/distiller_page.cc
index cc486c746522b15c197464cceb304eca93e57d87..3f4bffe623c7016d49028be463e63b60278c5c6a 100644
--- a/components/dom_distiller/core/distiller_page.cc
+++ b/components/dom_distiller/core/distiller_page.cc
@@ -52,16 +52,16 @@ void DistillerPage::OnLoadURLFailed() {
scoped_ptr<base::Value> empty(base::Value::CreateNullValue());
if (!delegate_)
return;
- delegate_->OnExecuteJavaScriptDone(empty.get());
+ delegate_->OnExecuteJavaScriptDone(GURL(), empty.get());
}
-void DistillerPage::OnExecuteJavaScriptDone(
- const base::Value* value) {
+void DistillerPage::OnExecuteJavaScriptDone(const GURL& page_url,
+ const base::Value* value) {
DCHECK_EQ(EXECUTING_JAVASCRIPT, state_);
state_ = PAGE_AVAILABLE;
if (!delegate_)
return;
- delegate_->OnExecuteJavaScriptDone(value);
+ delegate_->OnExecuteJavaScriptDone(page_url, value);
}
} // namespace dom_distiller
« no previous file with comments | « components/dom_distiller/core/distiller_page.h ('k') | components/dom_distiller/core/distiller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698