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

Unified Diff: Source/platform/exported/WebURLError.cpp

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 | « no previous file | Source/platform/network/ResourceError.h » ('j') | public/platform/WebURLError.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/exported/WebURLError.cpp
diff --git a/Source/platform/exported/WebURLError.cpp b/Source/platform/exported/WebURLError.cpp
index 9858316838800cb5f71612fcedfa47b530cc25b1..ca7ac16abe80541ef90cf72c180e3ce2a52ad8d1 100644
--- a/Source/platform/exported/WebURLError.cpp
+++ b/Source/platform/exported/WebURLError.cpp
@@ -53,6 +53,7 @@ WebURLError& WebURLError::operator=(const ResourceError& error)
reason = error.errorCode();
unreachableURL = KURL(ParsedURLString, error.failingURL());
isCancellation = error.isCancellation();
+ staleCopyInCache = error.staleCopyInCache();
localizedDescription = error.localizedDescription();
}
return *this;
@@ -65,6 +66,7 @@ WebURLError::operator ResourceError() const
CString spec = unreachableURL.spec();
ResourceError resourceError = ResourceError(domain, reason, String::fromUTF8(spec.data(), spec.length()), localizedDescription);
resourceError.setIsCancellation(isCancellation);
+ resourceError.setStaleCopyInCache(staleCopyInCache);
return resourceError;
}
« no previous file with comments | « no previous file | Source/platform/network/ResourceError.h » ('j') | public/platform/WebURLError.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698