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

Unified Diff: chrome/renderer/navigation_state.h

Issue 6546069: Only display Link Doctor page on 404 errors with no body (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Response to comments Created 9 years, 10 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: chrome/renderer/navigation_state.h
===================================================================
--- chrome/renderer/navigation_state.h (revision 75637)
+++ chrome/renderer/navigation_state.h (working copy)
@@ -210,17 +210,11 @@
security_info_ = security_info;
}
- bool postpone_loading_data() const { return postpone_loading_data_; }
- void set_postpone_loading_data(bool postpone_loading_data) {
- postpone_loading_data_ = postpone_loading_data;
+ bool use_error_page() const { return use_error_page_; }
+ void set_use_error_page(bool use_error_page) {
+ use_error_page_ = use_error_page;
}
- const std::string& postponed_data() const { return postponed_data_; }
- void clear_postponed_data() { postponed_data_.clear(); }
- void append_postponed_data(const char* data, size_t data_len) {
- postponed_data_.append(data, data_len);
- }
-
bool is_prerendering() const;
void set_is_prerendering(bool is_prerendering);
@@ -316,9 +310,11 @@
scoped_ptr<webkit_glue::PasswordForm> password_form_data_;
scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_error_page_fetcher_;
std::string security_info_;
- bool postpone_loading_data_;
- std::string postponed_data_;
+ // True if we should use an error page, if the http status code alos indicates
+ // an error.
+ bool use_error_page_;
+
// True if page is being prerendered. False once prerendered page is
// displayed. Preserved across redirects. Only set for the main frame's
// data source.

Powered by Google App Engine
This is Rietveld 408576698