summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/navigation_state.h
diff options
context:
space:
mode:
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-13 19:15:08 +0000
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-13 19:15:08 +0000
commit3f853a5af52be63328d5a73eb4b9651ee3d09e9d (patch)
tree4274e75402302a4dab7229144544f18fffce7e75 /chrome/renderer/navigation_state.h
parentb6c98a837a4af01daeaf36cf4beaa170c33df417 (diff)
downloadchromium_src-3f853a5af52be63328d5a73eb4b9651ee3d09e9d.zip
chromium_src-3f853a5af52be63328d5a73eb4b9651ee3d09e9d.tar.gz
chromium_src-3f853a5af52be63328d5a73eb4b9651ee3d09e9d.tar.bz2
Uses an internal error page on some of the more common http errors, and a few obscure ones. Will only display the error page if 0 bytes are received along with a recognized http error code.
BUG=43767 TEST=Find an http server that returns 0-length responses with error codes... Review URL: http://codereview.chromium.org/3195005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59258 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/navigation_state.h')
-rw-r--r--chrome/renderer/navigation_state.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/renderer/navigation_state.h b/chrome/renderer/navigation_state.h
index 6923def..d9cee3e 100644
--- a/chrome/renderer/navigation_state.h
+++ b/chrome/renderer/navigation_state.h
@@ -211,6 +211,11 @@ class NavigationState : public WebKit::WebDataSource::ExtraData {
postponed_data_.append(data, data_len);
}
+ int http_status_code() const { return http_status_code_; }
+ void set_http_status_code(int http_status_code) {
+ http_status_code_ = http_status_code;
+ }
+
// Sets the cache policy. The cache policy is only used if explicitly set and
// by default is not set. You can mark a NavigationState as not having a cache
// state by way of clear_cache_policy_override.
@@ -286,6 +291,7 @@ class NavigationState : public WebKit::WebDataSource::ExtraData {
cache_policy_override_set_(false),
cache_policy_override_(WebKit::WebURLRequest::UseProtocolCachePolicy),
user_script_idle_scheduler_(NULL),
+ http_status_code_(0),
was_fetched_via_spdy_(false),
was_npn_negotiated_(false),
was_alternate_protocol_available_(false),
@@ -323,6 +329,7 @@ class NavigationState : public WebKit::WebDataSource::ExtraData {
WebKit::WebURLRequest::CachePolicy cache_policy_override_;
scoped_ptr<UserScriptIdleScheduler> user_script_idle_scheduler_;
+ int http_status_code_;
bool was_fetched_via_spdy_;
bool was_npn_negotiated_;