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

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

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
Index: content/browser/web_contents/navigation_entry_impl.h
diff --git a/content/browser/web_contents/navigation_entry_impl.h b/content/browser/web_contents/navigation_entry_impl.h
index 96d7ac9e2ba202fadc7cfe233ca4d55ee5625f7c..63924b8ad7320310d7d1742505d6eaf552eaa212 100644
--- a/content/browser/web_contents/navigation_entry_impl.h
+++ b/content/browser/web_contents/navigation_entry_impl.h
@@ -84,6 +84,8 @@ class CONTENT_EXPORT NavigationEntryImpl
virtual bool GetExtraData(const std::string& key,
string16* data) const OVERRIDE;
virtual void ClearExtraData(const std::string& key) OVERRIDE;
+ virtual void SetHttpStatusCode(int http_status_code) OVERRIDE;
+ virtual int GetHttpStatusCode() const OVERRIDE;
void set_unique_id(int unique_id) {
unique_id_ = unique_id;
@@ -231,6 +233,7 @@ class CONTENT_EXPORT NavigationEntryImpl
GURL original_request_url_;
bool is_overriding_user_agent_;
base::Time timestamp_;
+ int http_status_code_;
// This member is not persisted with session restore because it is transient.
// If the post request succeeds, this field is cleared since the same

Powered by Google App Engine
This is Rietveld 408576698