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

Unified Diff: chrome/renderer/net/net_error_helper.h

Issue 207553008: Surface button for loading stale cache copy on net error page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix incorrect spelling of iOS. Created 6 years, 8 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/net/net_error_helper.h
diff --git a/chrome/renderer/net/net_error_helper.h b/chrome/renderer/net/net_error_helper.h
index 5369e19712001473723197f311c58a602cc878be..173146f4c802654aa225c3e12e12d2cff363e8a2 100644
--- a/chrome/renderer/net/net_error_helper.h
+++ b/chrome/renderer/net/net_error_helper.h
@@ -40,6 +40,11 @@ class NetErrorHelper
explicit NetErrorHelper(content::RenderFrame* render_view);
virtual ~NetErrorHelper();
+ // Button press notification from error page.
+ void ReloadButtonPressed();
+ void LoadStaleButtonPressed();
+ void MoreButtonPressed();
+
// RenderFrameObserver implementation.
virtual void DidStartProvisionalLoad() OVERRIDE;
virtual void DidCommitProvisionalLoad(bool is_new_navigation) OVERRIDE;
@@ -75,10 +80,12 @@ class NetErrorHelper
const blink::WebURLError& error,
bool is_failed_post,
scoped_ptr<LocalizedError::ErrorPageParams> params,
+ bool* reload_button_shown,
+ bool* load_stale_button_shown,
std::string* html) const OVERRIDE;
virtual void LoadErrorPageInMainFrame(const std::string& html,
const GURL& failed_url) OVERRIDE;
- virtual void EnableStaleLoadBindings(const GURL& page_url) OVERRIDE;
+ virtual void EnablePageHelperFunctions() OVERRIDE;
virtual void UpdateErrorPage(const blink::WebURLError& error,
bool is_failed_post) OVERRIDE;
virtual void FetchNavigationCorrections(
@@ -86,6 +93,7 @@ class NetErrorHelper
const std::string& navigation_correction_request_body) OVERRIDE;
virtual void CancelFetchNavigationCorrections() OVERRIDE;
virtual void ReloadPage() OVERRIDE;
+ virtual void LoadPageFromCache(const GURL& page_url) OVERRIDE;
void OnNetErrorInfo(int status);
void OnSetNavigationCorrectionInfo(const GURL& navigation_correction_url,

Powered by Google App Engine
This is Rietveld 408576698