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

Unified Diff: Source/Platform/chromium/src/Platform.cpp

Issue 14264012: Create errors (especially cancellation errors) internally to WebCore, rather (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Created 7 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: Source/Platform/chromium/src/Platform.cpp
===================================================================
--- Source/Platform/chromium/src/Platform.cpp (revision 148844)
+++ Source/Platform/chromium/src/Platform.cpp (working copy)
@@ -31,6 +31,8 @@
#include "config.h"
#include <public/Platform.h>
+#include <public/WebURLError.h>
+
namespace WebKit {
static Platform* s_platform = 0;
@@ -50,4 +52,12 @@
return s_platform;
}
+WebURLError Platform::cancelledError(const WebURL& unreachableURL) const
+{
+ WebURLError error;
+ error.unreachableURL = unreachableURL;
+ error.isCancellation = true;
+ return error;
+}
+
} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698