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

Unified Diff: public/platform/WebURLError.h

Issue 1178273007: Add a flag for when a navigation is ignored (e.g. by shouldOverrideUrl). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 7ffd77245bc81a59e3d04e749c3f4d30c652db42..2fb11a98e52774d4655aae6a8c577527c17d7b3d 100644
--- a/public/platform/WebURLError.h
+++ b/public/platform/WebURLError.h
@@ -58,13 +58,18 @@ struct WebURLError {
// e.g. we do not show console errors for cancellations.
bool isCancellation;
+ // A flag showing whether this error is the result of a request being
+ // ignored (e.g. through shouldOverrideUrlLoading).
+ bool wasIgnoredByHandler;
+
// The url that failed to load.
WebURL unreachableURL;
// A description for the error.
WebString localizedDescription;
- WebURLError() : reason(0), staleCopyInCache(false), isCancellation(false) { }
+ WebURLError() : reason(0), staleCopyInCache(false), isCancellation(false),
+ wasIgnoredByHandler(false) { }
#if INSIDE_BLINK
BLINK_PLATFORM_EXPORT WebURLError(const 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