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

Unified Diff: content/browser/frame_host/navigation_entry_impl.cc

Issue 2310363002: Persist offline page info in a navigation entry if needed (Closed)
Patch Set: Update 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: content/browser/frame_host/navigation_entry_impl.cc
diff --git a/content/browser/frame_host/navigation_entry_impl.cc b/content/browser/frame_host/navigation_entry_impl.cc
index 31b1d508e8ee0a7f70a5fdbc9a28b5e169c5d57e..cc5b092bf394fc8fdb1edae84103b4cbb25e8bbf 100644
--- a/content/browser/frame_host/navigation_entry_impl.cc
+++ b/content/browser/frame_host/navigation_entry_impl.cc
@@ -559,6 +559,18 @@ bool NavigationEntryImpl::IsRestored() const {
return restore_type_ != RestoreType::NONE;
}
+std::string NavigationEntryImpl::GetExtraHeaders() const {
+ return extra_headers_;
+}
+
+void NavigationEntryImpl::AddExtraHeaders(const std::string&
+ more_extra_headers) {
+ DCHECK(!more_extra_headers.empty());
+ if (!extra_headers_.empty())
+ extra_headers_ += "\r\n";
+ extra_headers_ += more_extra_headers;
+}
+
void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) {
can_load_local_resources_ = allow;
}

Powered by Google App Engine
This is Rietveld 408576698