Chromium Code Reviews| Index: Source/core/platform/network/ResourceError.cpp |
| =================================================================== |
| --- Source/core/platform/network/ResourceError.cpp (revision 148844) |
| +++ Source/core/platform/network/ResourceError.cpp (working copy) |
| @@ -27,10 +27,21 @@ |
| #include "config.h" |
| #include "ResourceError.h" |
| +#include "KURL.h" |
| +#include <public/Platform.h> |
| +#include <public/WebURL.h> |
| +#include <public/WebURLError.h> |
| + |
| namespace WebCore { |
| const char* const errorDomainWebKitInternal = "WebKitInternal"; |
| +ResourceError ResourceError::cancelledError(const String& failingURL) |
| +{ |
| + ResourceError error = WebKit::Platform::current()->cancelledError(KURL(ParsedURLString, failingURL)); |
|
darin (slow to review)
2013/04/25 18:15:54
nit: no need for "error" temp variable
just "retu
|
| + return error; |
| +} |
| + |
| ResourceError ResourceError::copy() const |
| { |
| ResourceError errorCopy; |