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

Unified Diff: ios/chrome/browser/dom_distiller/distiller_viewer.h

Issue 2650593003: Store distilled URL during distillation in Reading List on iOS (Closed)
Patch Set: Created 3 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
Index: ios/chrome/browser/dom_distiller/distiller_viewer.h
diff --git a/ios/chrome/browser/dom_distiller/distiller_viewer.h b/ios/chrome/browser/dom_distiller/distiller_viewer.h
index 25a99efcdbd03dd2e4da999621d5d31d16631be7..b4a82b37732736244914d2eb6e0e24ab0b4fa572 100644
--- a/ios/chrome/browser/dom_distiller/distiller_viewer.h
+++ b/ios/chrome/browser/dom_distiller/distiller_viewer.h
@@ -52,16 +52,15 @@ class DistillerViewerInterface : public DomDistillerRequestViewBase {
class DistillerViewer : public DistillerViewerInterface {
public:
// Creates a |DistillerView| that will be used to distill |url|.
- // If |factory| is not null, it will be used to create the DistillerPage that
- // will load the URL and distill the page. If |factory| is null, the default
- // factory of |distillerService| will be used.
+ // If |page| is not null, it will be used to load |url| and inject the page.
+ // If |page| is null, the default factory of |distillerService| will be used.
// |callback| is called when distillation is finished with the protobuf
// containing the distilled page.
DistillerViewer(dom_distiller::DomDistillerService* distillerService,
PrefService* prefs,
const GURL& url,
const DistillationFinishedCallback& callback,
- const DistillerPageFactory* factory);
+ std::unique_ptr<dom_distiller::DistillerPage> page);
~DistillerViewer() override;
void OnArticleReady(
« no previous file with comments | « components/dom_distiller/ios/distiller_page_ios.h ('k') | ios/chrome/browser/dom_distiller/distiller_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698