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

Unified Diff: components/dom_distiller/core/distiller_page.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
« no previous file with comments | « components/dom_distiller/core/distiller.cc ('k') | components/dom_distiller/core/distiller_page.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.h
diff --git a/components/dom_distiller/core/distiller_page.h b/components/dom_distiller/core/distiller_page.h
index 291ef7ec0656b76a805f598c554b82130fb8711d..4e22e8d79648d3c985ccce6bfc2b2fdbae912aec 100644
--- a/components/dom_distiller/core/distiller_page.h
+++ b/components/dom_distiller/core/distiller_page.h
@@ -22,7 +22,8 @@ class DistillerPage {
public:
virtual ~Delegate() {}
virtual void OnLoadURLDone() {}
- virtual void OnExecuteJavaScriptDone(const base::Value* value) {}
+ virtual void OnExecuteJavaScriptDone(const GURL& page_url,
+ const base::Value* value) {}
};
explicit DistillerPage(Delegate* delegate);
@@ -45,9 +46,10 @@ class DistillerPage {
// a page is available.
void ExecuteJavaScript(const std::string& script);
- // Called when the JavaScript execution completes. |value| contains data
- // returned by the script.
- virtual void OnExecuteJavaScriptDone(const base::Value* value);
+ // Called when the JavaScript execution completes. |page_url| is the url of
+ // the distilled page. |value| contains data returned by the script.
+ virtual void OnExecuteJavaScriptDone(const GURL& page_url,
+ const base::Value* value);
protected:
enum State {
« no previous file with comments | « components/dom_distiller/core/distiller.cc ('k') | components/dom_distiller/core/distiller_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698