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

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

Issue 22837005: Add HTTP status code to navigation data structures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bug Created 7 years, 4 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/web_contents/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/web_contents/navigation_entry_impl.cc
diff --git a/content/browser/web_contents/navigation_entry_impl.cc b/content/browser/web_contents/navigation_entry_impl.cc
index a23b7b6623adbcbcc0f8d1a632e3a9c2567ea6fb..0a8664493d0dd9edfea5c3a4d223ed8cc9ebc3e0 100644
--- a/content/browser/web_contents/navigation_entry_impl.cc
+++ b/content/browser/web_contents/navigation_entry_impl.cc
@@ -48,6 +48,7 @@ NavigationEntryImpl::NavigationEntryImpl()
post_id_(-1),
restore_type_(RESTORE_NONE),
is_overriding_user_agent_(false),
+ http_status_code_(0),
is_renderer_initiated_(false),
should_replace_entry_(false),
should_clear_history_list_(false),
@@ -75,6 +76,7 @@ NavigationEntryImpl::NavigationEntryImpl(SiteInstanceImpl* instance,
post_id_(-1),
restore_type_(RESTORE_NONE),
is_overriding_user_agent_(false),
+ http_status_code_(0),
is_renderer_initiated_(is_renderer_initiated),
should_replace_entry_(false),
should_clear_history_list_(false),
@@ -277,6 +279,14 @@ base::Time NavigationEntryImpl::GetTimestamp() const {
return timestamp_;
}
+void NavigationEntryImpl::SetHttpStatusCode(int http_status_code) {
+ http_status_code_ = http_status_code;
+}
+
+int NavigationEntryImpl::GetHttpStatusCode() const {
+ return http_status_code_;
+}
+
void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) {
can_load_local_resources_ = allow;
}
« no previous file with comments | « content/browser/web_contents/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