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

Unified Diff: components/offline_pages/background/save_page_request.h

Issue 2209813002: [Offline Pages] Moves Coordinator to using MarkAttemptStarted/MarkAttemptCompleted API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 years, 4 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: components/offline_pages/background/save_page_request.h
diff --git a/components/offline_pages/background/save_page_request.h b/components/offline_pages/background/save_page_request.h
index 8c09562fa791eaaef8b1cf41d4e2fb49b40f7655..d241deaf052b7e9bbaf253943881e1b103398bb2 100644
--- a/components/offline_pages/background/save_page_request.h
+++ b/components/offline_pages/background/save_page_request.h
@@ -50,6 +50,10 @@ class SavePageRequest {
// Marks attempt as completed and clears |last_attempt_time_|.
void MarkAttemptCompleted();
+ // Marks attempt as aborted. Specifically it clears |last_attempt_time_|
+ // and decrements |attempt_count_|.
+ void MarkAttemptAborted();
+
int64_t request_id() const { return request_id_; }
const GURL& url() const { return url_; }
« no previous file with comments | « components/offline_pages/background/request_queue.h ('k') | components/offline_pages/background/save_page_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698