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

Unified Diff: content/child/web_url_request_util.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/child/web_url_loader_impl.cc ('k') | content/child/web_url_request_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_request_util.h
diff --git a/content/child/web_url_request_util.h b/content/child/web_url_request_util.h
index 7ba9fa0661ed263b551012a51bd5b0dea96ec7b7..f12b5401377fd145b011e49134f7462eea8ebf09 100644
--- a/content/child/web_url_request_util.h
+++ b/content/child/web_url_request_util.h
@@ -12,7 +12,9 @@
#include "content/public/common/resource_type.h"
namespace blink {
+class WebURL;
class WebURLRequest;
+struct WebURLError;
}
namespace content {
@@ -30,6 +32,11 @@ int GetLoadFlagsForWebURLRequest(const blink::WebURLRequest& request);
scoped_refptr<ResourceRequestBody> GetRequestBodyForWebURLRequest(
const blink::WebURLRequest& request);
+// Generates a WebURLError based on |reason|.
+blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url,
+ bool stale_copy_in_cache,
+ int reason);
+
} // namespace content
#endif // CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/child/web_url_request_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698