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

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: Fix win compiling error due to using unique_ptr map in SESSIONS_EXPORT class 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
« no previous file with comments | « content/browser/frame_host/navigation_entry_impl.h ('k') | content/public/browser/navigation_entry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c829844fcae37e9096a25682af4113c8b465b63f 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;
}
« no previous file with comments | « content/browser/frame_host/navigation_entry_impl.h ('k') | content/public/browser/navigation_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698