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

Unified Diff: Source/WebCore/platform/network/ResourceError.h

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/WebCore/platform/network/ResourceError.h
===================================================================
--- Source/WebCore/platform/network/ResourceError.h (revision 148396)
+++ Source/WebCore/platform/network/ResourceError.h (working copy)
@@ -33,8 +33,15 @@
extern const char* const errorDomainWebKitInternal; // Used for errors that won't be exposed to clients.
+// An internal error code. Used to note a policy change error resulting from
+// dispatchDecidePolicyForMIMEType not passing the PolicyUse option.
+extern const int policyChangeError;
darin (slow to review) 2013/04/16 20:25:39 nit: this is a bit of a layering violation. platf
Nate Chapin 2013/04/16 20:40:43 I'm wondering if we actually need to differentiate
+
class ResourceError {
public:
+ static ResourceError createCancelledError(const String& failingURL);
darin (slow to review) 2013/04/16 20:25:39 nit: create* methods usually return a heap allocat
+ static ResourceError createPolicyChangeError(const String& failingURL);
+
ResourceError()
: m_errorCode(0)
, m_isNull(true)

Powered by Google App Engine
This is Rietveld 408576698