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

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

Issue 11054025: [Sync] Add HTTP status codes to NavigationEntry and TabNavigation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase onto 11096037 Created 8 years, 2 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 a3f6b905dab84553ea7d6a497962851f4518fdf5..00c1b1164b7e8df2f1917e1c07a7633508c6fbc3 100644
--- a/content/browser/web_contents/navigation_entry_impl.cc
+++ b/content/browser/web_contents/navigation_entry_impl.cc
@@ -46,6 +46,7 @@ NavigationEntryImpl::NavigationEntryImpl()
post_id_(-1),
restore_type_(RESTORE_NONE),
is_overriding_user_agent_(false),
+ http_status_code_(0),
is_renderer_initiated_(false),
is_cross_site_reload_(false) {
}
@@ -70,6 +71,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),
is_cross_site_reload_(false) {
}
@@ -263,4 +265,12 @@ 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_;
+}
+
} // namespace content
« 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