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

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

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
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 8a2ca90cecb42107b5cd7d323808b15893bd8577..f8a4f054832df2a2fb273a37244b96a0949561cf 100644
--- a/content/browser/web_contents/navigation_entry_impl.h
+++ b/content/browser/web_contents/navigation_entry_impl.h
@@ -71,6 +71,8 @@ class CONTENT_EXPORT NavigationEntryImpl
virtual bool GetIsOverridingUserAgent() const OVERRIDE;
virtual void SetTimestamp(base::Time timestamp) OVERRIDE;
virtual base::Time GetTimestamp() const 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;
@@ -166,9 +168,8 @@ class CONTENT_EXPORT NavigationEntryImpl
private:
// WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
- // Session/Tab restore save portions of this class so that it can be recreated
- // later. If you add a new field that needs to be persisted you'll have to
- // update SessionService/TabRestoreService appropriately.
+ // If you add a new field that needs to be persisted you must update
+ // TabNavigation in session_types.h appropriately.
// WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
// See the accessors above for descriptions.
@@ -192,6 +193,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