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

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

Issue 2604773002: Create distiller files for Reading List. (Closed)
Patch Set: feedback Created 3 years, 12 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 | « ios/chrome/browser/dom_distiller/BUILD.gn ('k') | ios/chrome/browser/dom_distiller/distiller_viewer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 639b7ea66770ba92dff110b5d4194d5df7a4880b..25a99efcdbd03dd2e4da999621d5d31d16631be7 100644
--- a/ios/chrome/browser/dom_distiller/distiller_viewer.h
+++ b/ios/chrome/browser/dom_distiller/distiller_viewer.h
@@ -51,10 +51,17 @@ class DistillerViewerInterface : public DomDistillerRequestViewBase {
// A very simple and naive implementation of the DistillerViewer.
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.
+ // |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 DistillationFinishedCallback& callback,
+ const DistillerPageFactory* factory);
~DistillerViewer() override;
void OnArticleReady(
« no previous file with comments | « ios/chrome/browser/dom_distiller/BUILD.gn ('k') | ios/chrome/browser/dom_distiller/distiller_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698