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_entry.h

Issue 2338133010: Add a TimeUntilNextTry to reading list (Closed)
Patch Set: Fix tests Created 4 years, 3 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_entry.h
diff --git a/ios/chrome/browser/reading_list/reading_list_entry.h b/ios/chrome/browser/reading_list/reading_list_entry.h
index 4201a0a9146a0ab77c8b66b8a70b47abde29847b..e17b3f39d1b2415c003726e5a9493e2b732bfae4 100644
--- a/ios/chrome/browser/reading_list/reading_list_entry.h
+++ b/ios/chrome/browser/reading_list/reading_list_entry.h
@@ -33,6 +33,11 @@ class ReadingListEntry {
// The local file URL for the distilled version of the page. This should only
// be called if the state is "PROCESSED".
const GURL& DistilledURL() const;
+ // The number of times this entry has failed to download the distilled version
+ // of the page since its creation or the last PROCESSED state.
+ // This counter is automatically increased when the state is set to WILL_RETRY
+ // or ERROR.
+ int FailedDistillationCounter() const;
ReadingListEntry& operator=(const ReadingListEntry& other);
bool operator==(const ReadingListEntry& other) const;
@@ -49,6 +54,7 @@ class ReadingListEntry {
std::string title_;
GURL distilled_url_;
DistillationState distilled_state_;
+ int failed_distillation_counter_;
};
#endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_ENTRY_H_

Powered by Google App Engine
This is Rietveld 408576698