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

Unified Diff: ios/chrome/browser/reading_list/reading_list_download_service.h

Issue 2565753002: Only distill unread items (Closed)
Patch Set: past tense in comments Created 4 years 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 eec7948553e95102826b043c9628545079ad33d1..62cd7b408abd9f06704dbba8731c73b9ea2979f8 100644
--- a/ios/chrome/browser/reading_list/reading_list_download_service.h
+++ b/ios/chrome/browser/reading_list/reading_list_download_service.h
@@ -50,11 +50,15 @@ class ReadingListDownloadService
const GURL& url) override;
void ReadingListDidAddEntry(const ReadingListModel* model,
const GURL& url) override;
+ void ReadingListDidMoveEntry(const ReadingListModel* model,
+ const GURL& url) override;
private:
// Tries to save offline versions of all entries in the reading list that are
// not yet saved. Must only be called after reading list model is loaded.
void DownloadAllEntries();
+ // Processes a new entry and schedule a download if needed.
+ void ProcessNewEntry(const GURL& url);
// Schedule a download of an offline version of the reading list entry,
// according to the delay of the entry. Must only be called after reading list
// model is loaded.

Powered by Google App Engine
This is Rietveld 408576698