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

Unified Diff: content/browser/loader/navigation_url_loader_delegate.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: Added a browsertest 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
Index: content/browser/loader/navigation_url_loader_delegate.h
diff --git a/content/browser/loader/navigation_url_loader_delegate.h b/content/browser/loader/navigation_url_loader_delegate.h
index f558c754579a2541c2261ec47c6c89ffebf70c8c..71f58673883a80f318e68876131674699b941f02 100644
--- a/content/browser/loader/navigation_url_loader_delegate.h
+++ b/content/browser/loader/navigation_url_loader_delegate.h
@@ -36,8 +36,10 @@ class CONTENT_EXPORT NavigationURLLoaderDelegate {
scoped_ptr<StreamHandle> body_stream) = 0;
// Called if the request fails before receving a response. |net_error| is a
- // network error code for the failure.
- virtual void OnRequestFailed(int net_error) = 0;
+ // network error code for the failure. |has_stale_copy_in_cache| is true if
+ // there is a stale
+ // copy of the unreachable page in cache.
Charlie Reis 2015/04/10 22:54:44 nit: Unexpected newline after stale
clamy 2015/04/14 11:56:25 Done.
+ virtual void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) = 0;
// Called after the network request has begun on the IO thread at time
// |timestamp|. This is just a thread hop but is used to compare timing

Powered by Google App Engine
This is Rietveld 408576698