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

Unified Diff: components/sessions/core/serialized_navigation_entry.h

Issue 2310363002: Persist offline page info in a navigation entry if needed (Closed)
Patch Set: Address feedback 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: components/sessions/core/serialized_navigation_entry.h
diff --git a/components/sessions/core/serialized_navigation_entry.h b/components/sessions/core/serialized_navigation_entry.h
index cc3b53d0f29df4d1cca140c959c8aa9b0c3f112e..947414f0cdf8dbd0a8a1c9898b0207f9d2473728 100644
--- a/components/sessions/core/serialized_navigation_entry.h
+++ b/components/sessions/core/serialized_navigation_entry.h
@@ -122,6 +122,7 @@ class SESSIONS_EXPORT SerializedNavigationEntry {
content_pack_categories_ = content_pack_categories;
}
const std::vector<GURL>& redirect_chain() const { return redirect_chain_; }
+ const std::string& offline_page_info() const { return offline_page_info_; }
sky 2016/09/12 15:04:22 This needs better documentation. What is offline_p
jianli 2016/09/12 21:17:46 Done.
private:
friend class ContentSerializedNavigationBuilder;
@@ -151,6 +152,7 @@ class SESSIONS_EXPORT SerializedNavigationEntry {
int http_status_code_;
bool is_restored_; // Not persisted.
std::vector<GURL> redirect_chain_; // Not persisted.
+ std::string offline_page_info_; // Not synced.
// Additional information.
BlockedState blocked_state_;

Powered by Google App Engine
This is Rietveld 408576698