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

Unified Diff: content/renderer/render_frame_impl.h

Issue 958083002: PlzNavigate: Show error pages when the navigation failed before commit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@support-data-urls
Patch Set: Updated test Created 5 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
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 92e32e35571b0cc3c8f980a57400496a43049019..b95a24cb1548f90185e4b5af1fa450a12e7a72f0 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -661,6 +661,10 @@ class CONTENT_EXPORT RenderFrameImpl
const GURL& stream_url,
const CommonNavigationParams& common_params,
const RequestNavigationParams& request_params);
+ void OnFailedNavigation(const CommonNavigationParams& common_params,
+ const RequestNavigationParams& request_params,
+ bool has_stale_copy_in_cache,
+ int error_code);
// Virtual since overridden by WebTestProxy for layout tests.
virtual blink::WebNavigationPolicy DecidePolicyForNavigation(
@@ -740,6 +744,15 @@ class CONTENT_EXPORT RenderFrameImpl
void LoadDataURL(const CommonNavigationParams& params,
blink::WebFrame* frame);
+ // Sends a proper FrameHostMsg_DidFailProvisionalLoadWithError_Params IPC for
+ // the failed request |request|.
+ void SendFailedProvisionalLoad(const blink::WebURLRequest& request,
+ const blink::WebURLError& error,
+ blink::WebLocalFrame* frame);
+
+ bool ShouldDisplayErrorPageForFailedLoad(int error_code,
+ const GURL& unreachable_url);
+
// Returns the URL being loaded by the |frame_|'s request.
GURL GetLoadingUrl() const;
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698