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

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

Issue 1968593002: PrerenderingLoader initial integration with PrerenderManager/PrerenderHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: An initialization order fix Created 4 years, 7 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/offliner.h
diff --git a/components/offline_pages/background/offliner.h b/components/offline_pages/background/offliner.h
index 8145cc8dadf7c924d76a65acf1d51286c010b4bb..cca247706b5e12fe6163a12382d3c81ba87c0243 100644
--- a/components/offline_pages/background/offliner.h
+++ b/components/offline_pages/background/offliner.h
@@ -17,10 +17,12 @@ class Offliner {
public:
// Completion status of processing an offline page request.
enum CompletionStatus {
pasko 2016/05/12 19:10:07 since there are values like "LOADED" with indicati
dougarnett 2016/05/13 00:00:24 Done.
- SAVED = 0,
- CANCELED = 1,
- FAILED_CONSIDER_RETRY = 2,
- FAILED_DO_NOT_RETRY = 3,
+ UNKNOWN = 0, // No completion status determined/reported yet.
pasko 2016/05/12 19:10:07 this value is not used in the code, use it in a te
dougarnett 2016/05/13 00:00:24 Actually meant to use in unit tests so added initi
+ LOADED = 1, // Page loaded but not (yet) saved.
+ SAVED = 2, // Offline page snapshot saved.
+ CANCELED = 3, // Request was canceled.
+ FAILED_CONSIDER_RETRY = 4, // Failed in a way that is subject to retry.
+ FAILED_DO_NOT_RETRY = 5,
pasko 2016/05/12 19:10:07 do we need numerical constants here? Scoped enums
dougarnett 2016/05/13 00:00:24 Done.
};
// Reports the completion status of a request.
« chrome/browser/android/offline_pages/prerendering_loader.cc ('K') | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698