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

Unified Diff: third_party/WebKit/Source/modules/filesystem/ErrorCallback.h

Issue 2040563002: Remove FileError interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fe-dep
Patch Set: Devtools/test updates Created 4 years, 6 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: 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

Powered by Google App Engine
This is Rietveld 408576698