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

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: Addressed comments 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
« no previous file with comments | « no previous file | components/dom_distiller/content/distiller_page_web_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
cjhopman 2015/02/07 01:16:48 I'd say make this non-optional and have the caller
nyquist 2015/03/09 20:40:03 Done.
+ std::string distiller_js_script_;
};
class DistillerPageWebContents : public DistillerPage,
« no previous file with comments | « no previous file | components/dom_distiller/content/distiller_page_web_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698