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

Unified Diff: public/platform/WebURLError.h

Issue 138493002: Added field to error structures to signal existence of a stale copy in (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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 | « Source/platform/network/ResourceError.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebURLError.h
diff --git a/public/platform/WebURLError.h b/public/platform/WebURLError.h
index 14553d0288b209b72154aa185441e6ea00aab25b..cdd0b6abb0e87eb6333e404e32de15f65bb3dc84 100644
--- a/public/platform/WebURLError.h
+++ b/public/platform/WebURLError.h
@@ -52,6 +52,10 @@ struct WebURLError {
// embedder (see for example WebFrameClient).
int reason;
+ // A flag showing whether or not "unreachableURL" has a copy in the
+ // cache that was too stale to return for this request.
+ bool staleCopyInCache;
abarth-chromium 2014/01/27 18:05:31 How likely do you think it is that we'll want to a
Randy Smith (Not in Mondays) 2014/01/27 19:13:56 Good question. In the area that I'm currently wor
+
// A flag showing whether this error should be treated as a cancellation,
// e.g. we do not show console errors for cancellations.
bool isCancellation;
@@ -62,7 +66,7 @@ struct WebURLError {
// A description for the error.
WebString localizedDescription;
- WebURLError() : reason(0), isCancellation(false) { }
+ WebURLError() : reason(0), staleCopyInCache(false), isCancellation(false) { }
#if INSIDE_BLINK
BLINK_PLATFORM_EXPORT WebURLError(const WebCore::ResourceError&);
« no previous file with comments | « Source/platform/network/ResourceError.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698