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

Unified Diff: components/dom_distiller/content/distiller_page_web_contents.h

Issue 901793002: Add support for providing an external file for extracting content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/distiller_page_web_contents.h
diff --git a/components/dom_distiller/content/distiller_page_web_contents.h b/components/dom_distiller/content/distiller_page_web_contents.h
index e73b0ccc9b04e5780664768f3189e76507e171b6..ac825ac51d9ca87d608aa373e661cc37dd708477 100644
--- a/components/dom_distiller/content/distiller_page_web_contents.h
+++ b/components/dom_distiller/content/distiller_page_web_contents.h
@@ -34,6 +34,8 @@ class DistillerPageWebContentsFactory : public DistillerPageFactory {
explicit DistillerPageWebContentsFactory(
content::BrowserContext* browser_context)
: DistillerPageFactory(), browser_context_(browser_context) {}
+ DistillerPageWebContentsFactory(content::BrowserContext* browser_context,
+ std::string distiller_js_script);
~DistillerPageWebContentsFactory() override {}
scoped_ptr<DistillerPage> CreateDistillerPage(
@@ -43,6 +45,8 @@ class DistillerPageWebContentsFactory : public DistillerPageFactory {
private:
content::BrowserContext* browser_context_;
+ // An optional script for overriding the JS that comes packaged with Chrome.
+ std::string distiller_js_script_;
};
class DistillerPageWebContents : public DistillerPage,

Powered by Google App Engine
This is Rietveld 408576698