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

Unified Diff: content/public/browser/navigation_entry.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
« no previous file with comments | « content/browser/web_contents/navigation_entry_impl.cc ('k') | sync/protocol/proto_value_conversions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/navigation_entry.h
diff --git a/content/public/browser/navigation_entry.h b/content/public/browser/navigation_entry.h
index e7724ebd7a7c20491c87cdaa76af27428995380a..faeecc7c640142310316c4b21532c38c89691e1e 100644
--- a/content/public/browser/navigation_entry.h
+++ b/content/public/browser/navigation_entry.h
@@ -198,6 +198,16 @@ class NavigationEntry {
virtual bool GetExtraData(const std::string& key, string16* data) const = 0;
// Removes the data at the specified |key|.
virtual void ClearExtraData(const std::string& key) = 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
« no previous file with comments | « content/browser/web_contents/navigation_entry_impl.cc ('k') | sync/protocol/proto_value_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698