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

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: Fixed replace computation 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..356389556037669500484497665bc8515f2ba6db 100644
--- a/content/browser/loader/navigation_url_loader_delegate.h
+++ b/content/browser/loader/navigation_url_loader_delegate.h
@@ -36,8 +36,9 @@ 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. |in_cache| is true if there is a stale
+ // copy in cache.
+ virtual void OnRequestFailed(bool in_cache, int net_error) = 0;
Charlie Reis 2015/04/09 00:07:30 Same.
clamy 2015/04/10 14:04:49 Done.
// 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