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) |