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

Unified Diff: Source/core/fileapi/FileError.h

Issue 22831019: Deprecate FileError in FileAPI (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: win test expectation fix (temporary) Created 7 years, 4 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
« no previous file with comments | « Source/core/dom/DOMError.h ('k') | Source/core/fileapi/FileError.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fileapi/FileError.h
diff --git a/Source/core/fileapi/FileError.h b/Source/core/fileapi/FileError.h
index 2dcf68c985a310211c625441f072ce872de38e2c..26dd392577eccbb61a6e4dd1a8fdd0f78ac368a9 100644
--- a/Source/core/fileapi/FileError.h
+++ b/Source/core/fileapi/FileError.h
@@ -32,6 +32,7 @@
#define FileError_h
#include "bindings/v8/ScriptWrappable.h"
+#include "core/dom/DOMError.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -39,7 +40,7 @@ namespace WebCore {
class ExceptionState;
-class FileError : public RefCounted<FileError>, public ScriptWrappable {
+class FileError : public DOMError {
public:
enum ErrorCode {
OK = 0,
@@ -76,11 +77,7 @@ public:
static void throwDOMException(ExceptionState&, ErrorCode);
private:
- FileError(ErrorCode code)
- : m_code(code)
- {
- ScriptWrappable::init(this);
- }
+ explicit FileError(ErrorCode);
ErrorCode m_code;
};
« no previous file with comments | « Source/core/dom/DOMError.h ('k') | Source/core/fileapi/FileError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698