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

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

Issue 2351113003: Reading list downloader retries on recoverable error (Closed)
Patch Set: Reviewable 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 4e3618ee0064f850e1fb7284094f7106b990762c..3ed4903e8e6226a817acd367e997cb5fc1a8fa0b 100644
--- a/ios/chrome/browser/reading_list/reading_list_entry.h
+++ b/ios/chrome/browser/reading_list/reading_list_entry.h
@@ -43,6 +43,10 @@ class ReadingListEntry {
// The time before the next try. This is automatically increased when the
// state is set to WILL_RETRY or ERROR from a non-error state.
base::TimeDelta TimeUntilNextTry() const;
+ // The number of time chrome failed to download this entry. This is
+ // automatically increased when the state is set to WILL_RETRY or ERROR from a
+ // non-error state.
+ int FailedDownloadCounter() const;
ReadingListEntry& operator=(ReadingListEntry&& other);
bool operator==(const ReadingListEntry& other) const;
@@ -61,6 +65,7 @@ class ReadingListEntry {
GURL distilled_url_;
DistillationState distilled_state_;
std::unique_ptr<net::BackoffEntry> backoff_;
+ int failed_download_counter_;
DISALLOW_COPY_AND_ASSIGN(ReadingListEntry);
};

Powered by Google App Engine
This is Rietveld 408576698