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

Unified Diff: Source/platform/network/ResourceError.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/exported/WebURLError.cpp ('k') | Source/platform/network/ResourceError.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/network/ResourceError.h
diff --git a/Source/platform/network/ResourceError.h b/Source/platform/network/ResourceError.h
index ca8096d6db7b7dd3fbd79a9df4589bbdaa54cf2e..f3baec9f98f0a146b5edf60f97bbfcd2278e0f79 100644
--- a/Source/platform/network/ResourceError.h
+++ b/Source/platform/network/ResourceError.h
@@ -46,6 +46,7 @@ public:
, m_isAccessCheck(false)
, m_isTimeout(false)
, m_staleCopyInCache(false)
+ , m_wasIgnoredByHandler(false)
{
}
@@ -59,6 +60,7 @@ public:
, m_isAccessCheck(false)
, m_isTimeout(false)
, m_staleCopyInCache(false)
+ , m_wasIgnoredByHandler(false)
{
}
@@ -83,6 +85,9 @@ public:
void setStaleCopyInCache(bool staleCopyInCache) { m_staleCopyInCache = staleCopyInCache; }
bool staleCopyInCache() const { return m_staleCopyInCache; }
+ void setWasIgnoredByHandler(bool ignoredByHandler) { m_wasIgnoredByHandler = ignoredByHandler; }
+ bool wasIgnoredByHandler() const { return m_wasIgnoredByHandler; }
+
static bool compare(const ResourceError&, const ResourceError&);
private:
@@ -95,6 +100,7 @@ private:
bool m_isAccessCheck;
bool m_isTimeout;
bool m_staleCopyInCache;
+ bool m_wasIgnoredByHandler;
};
inline bool operator==(const ResourceError& a, const ResourceError& b) { return ResourceError::compare(a, b); }
« no previous file with comments | « Source/platform/exported/WebURLError.cpp ('k') | Source/platform/network/ResourceError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698