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

Unified Diff: content/public/browser/navigation_entry.h

Issue 11054025: [Sync] Add HTTP status codes to NavigationEntry and TabNavigation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/public/browser/navigation_entry.h
diff --git a/content/public/browser/navigation_entry.h b/content/public/browser/navigation_entry.h
index c90704537fd447c2652e2921b2b4d5e0bd57a1d5..679cff1cfc456a83bed0c8c6af1abf4515b894fc 100644
--- a/content/public/browser/navigation_entry.h
+++ b/content/public/browser/navigation_entry.h
@@ -177,6 +177,16 @@ class NavigationEntry {
// - or this navigation was copied from a foreign session.
virtual void SetTimestamp(base::Time timestamp) = 0;
virtual base::Time GetTimestamp() const = 0;
+
+ // The status code of the last known successful navigation. If
+ // GetHttpStatusCode() returns 0 that means that either:
+ //
+ // - this navigation hasn't completed yet;
+ // - a response wasn't received;
+ // - or this navigation was restored and for some reason the
+ // status code wasn't available.
+ virtual void SetHttpStatusCode(int http_status_code) = 0;
+ virtual int GetHttpStatusCode() const = 0;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698