From 62b271de77990e9cb5c530c8a27ff41f21f9b1b3 Mon Sep 17 00:00:00 2001 From: clamy Date: Thu, 16 Apr 2015 04:54:57 -0700 Subject: PlzNavigate: Show error pages when the navigation failed before commit This CL enables showing error pages when browser-side navigation is enabled. It introduces a new IPC FrameMsg_FailedNavigation used by the browser to ask a renderer to display an appropriate error page for a navigation that just failed. BUG=459033 Review URL: https://codereview.chromium.org/958083002 Cr-Commit-Position: refs/heads/master@{#325425} --- content/browser/frame_host/navigation_request.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content/browser/frame_host/navigation_request.h') diff --git a/content/browser/frame_host/navigation_request.h b/content/browser/frame_host/navigation_request.h index cfb94bf..ce5c546 100644 --- a/content/browser/frame_host/navigation_request.h +++ b/content/browser/frame_host/navigation_request.h @@ -134,7 +134,7 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate { const scoped_refptr& response) override; void OnResponseStarted(const scoped_refptr& response, scoped_ptr body) override; - void OnRequestFailed(int net_error) override; + void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override; void OnRequestStarted(base::TimeTicks timestamp) override; FrameTreeNode* frame_tree_node_; -- cgit v1.1