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

Unified Diff: ios/chrome/browser/reading_list/reading_list_download_service.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
Index: ios/chrome/browser/reading_list/reading_list_download_service.h
diff --git a/ios/chrome/browser/reading_list/reading_list_download_service.h b/ios/chrome/browser/reading_list/reading_list_download_service.h
index 8f70e283a66e2555f8be8ab33d8f545efa3377f2..55adb74d9d1ca7124d7d122db153ce58d4412896 100644
--- a/ios/chrome/browser/reading_list/reading_list_download_service.h
+++ b/ios/chrome/browser/reading_list/reading_list_download_service.h
@@ -22,6 +22,10 @@ namespace dom_distiller {
class DomDistillerService;
}
+namespace reading_list {
+class ReadingListDistillerPageFactory;
+}
+
// Observes the reading list and downloads offline versions of its articles.
// Any calls made to DownloadAllEntries/DownloadEntry before the model is
// loaded will be ignored. When the model is loaded, DownloadAllEntries will be
@@ -35,7 +39,9 @@ class ReadingListDownloadService
ReadingListModel* reading_list_model,
dom_distiller::DomDistillerService* distiller_service,
PrefService* prefs,
- base::FilePath chrome_profile_path);
+ base::FilePath chrome_profile_path,
+ std::unique_ptr<reading_list::ReadingListDistillerPageFactory>
+ distiller_page_factory);
~ReadingListDownloadService() override;
// Initializes the reading list download service.
@@ -91,6 +97,8 @@ class ReadingListDownloadService
std::vector<GURL> url_to_download_cellular_;
std::vector<GURL> url_to_download_wifi_;
bool had_connection_;
+ std::unique_ptr<reading_list::ReadingListDistillerPageFactory>
+ distiller_page_factory_;
base::WeakPtrFactory<ReadingListDownloadService> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698