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

Unified Diff: chrome/browser/android/offline_pages/offline_page_request_job.h

Issue 2322833002: Support serving offline page by offline ID (Closed)
Patch Set: 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: chrome/browser/android/offline_pages/offline_page_request_job.h
diff --git a/chrome/browser/android/offline_pages/offline_page_request_job.h b/chrome/browser/android/offline_pages/offline_page_request_job.h
index 0e8333d6b1ec3021d3f82ae6e0ef4101022dad03..d9af8902c94a88c9e9c560288e6ea226207df77b 100644
--- a/chrome/browser/android/offline_pages/offline_page_request_job.h
+++ b/chrome/browser/android/offline_pages/offline_page_request_job.h
@@ -19,13 +19,24 @@ namespace offline_pages {
// Header that indicates that the offline page should be loaded if it exists
// regardless current network conditions. Its value is a comma/space separated
// name-value pair that may provide reason or define custom behavior.
-extern const char kLoadingOfflinePageHeader[];
+extern const char kOfflinePageHeader[];
+// The name used in name-value pair of kLoadingOfflinePageHeader to tell if the
Dmitry Titov 2016/09/09 04:33:06 Need to update comment here - there is no more kLo
jianli 2016/09/10 00:56:04 Done.
+// offline info in this header should be persisted across session restore.
+extern const char kOfflinePageHeaderPersistKey[];
Dmitry Titov 2016/09/09 04:33:06 Is this from a separate CL? This CL does not seem
jianli 2016/09/10 00:56:04 Another CL (https://codereview.chromium.org/231036
// The name used in name-value pair of kLoadingOfflinePageHeader to denote the
// reason for loading offline page.
-extern const char kLoadingOfflinePageReason[];
+extern const char kOfflinePageHeaderReasonKey[];
// Possible values in name-value pair that denote the reason for loading offline
// page.
-extern const char kLoadingOfflinePageDueToNetError[];
+extern const char kOfflinePageHeaderReasonValueDueToNetError[];
+// The name used in name-value pair of kLoadingOfflinePageHeader to denote the
+// namespace of the offline page to load.
+extern const char kOfflinePageHeaderNamespaceKey[];
+// The name used in name-value pair of kLoadingOfflinePageHeader to denote the
+// ID of the offline page to load. If kOfflinePageNamespace value exists, this
+// ID is the client ID within the specific namespace. Otherwise, this ID is the
+// offline ID.
+extern const char kOfflinePageHeaderIDKey[];
// A request job that serves content from offline file.
class OfflinePageRequestJob : public net::URLRequestFileJob {

Powered by Google App Engine
This is Rietveld 408576698