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

Unified Diff: Source/modules/webdatabase/SQLError.h

Issue 15605003: Make Exception and Error objects ScriptWrappable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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/modules/geolocation/PositionError.h ('k') | Source/modules/webdatabase/SQLException.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/SQLError.h
diff --git a/Source/modules/webdatabase/SQLError.h b/Source/modules/webdatabase/SQLError.h
index 5ebc2b1109efe4d8d1dd76d39f6a46870c4015bd..9b1d3f4b594673c0006d63ecc8590356623d2f9b 100644
--- a/Source/modules/webdatabase/SQLError.h
+++ b/Source/modules/webdatabase/SQLError.h
@@ -29,12 +29,13 @@
#ifndef SQLError_h
#define SQLError_h
+#include "bindings/v8/ScriptWrappable.h"
#include "wtf/ThreadSafeRefCounted.h"
#include "wtf/text/WTFString.h"
namespace WebCore {
-class SQLError : public ThreadSafeRefCounted<SQLError> {
+class SQLError : public ThreadSafeRefCounted<SQLError>, public ScriptWrappable {
public:
static PassRefPtr<SQLError> create(unsigned code, const String& message) { return adoptRef(new SQLError(code, message)); }
static PassRefPtr<SQLError> create(unsigned code, const char* message, int sqliteCode)
@@ -61,7 +62,11 @@ public:
};
private:
- SQLError(unsigned code, const String& message) : m_code(code), m_message(message.isolatedCopy()) { }
+ SQLError(unsigned code, const String& message) : m_code(code), m_message(message.isolatedCopy())
+ {
+ ScriptWrappable::init(this);
+ }
+
unsigned m_code;
String m_message;
};
« no previous file with comments | « Source/modules/geolocation/PositionError.h ('k') | Source/modules/webdatabase/SQLException.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698