Index: third_party/WebKit/Source/modules/filesystem/ErrorCallback.h |
diff --git a/third_party/WebKit/Source/modules/filesystem/ErrorCallback.h b/third_party/WebKit/Source/modules/filesystem/ErrorCallback.h |
index 655b495dc46aea11538d923da5c9ee3c2855d402..d83033ebec8c43438440f9439f9978777f4fa981 100644 |
--- a/third_party/WebKit/Source/modules/filesystem/ErrorCallback.h |
+++ b/third_party/WebKit/Source/modules/filesystem/ErrorCallback.h |
@@ -31,6 +31,7 @@ |
#ifndef ErrorCallback_h |
#define ErrorCallback_h |
+#include "core/fileapi/FileError.h" |
#include "platform/heap/Handle.h" |
namespace blink { |
@@ -41,7 +42,8 @@ class ErrorCallback : public GarbageCollectedFinalized<ErrorCallback> { |
public: |
virtual ~ErrorCallback() { } |
DEFINE_INLINE_VIRTUAL_TRACE() { } |
- virtual void handleEvent(FileError*) = 0; |
+ virtual void handleEvent(DOMException*) = 0; |
+ virtual void handleEvent(FileError* error) { handleEvent(FileError::createDOMException(error->code())); } |
}; |
} // namespace blink |