summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/modules/indexeddb/IDBCursorWithValue.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/modules/indexeddb/IDBCursorWithValue.h')
-rw-r--r--chromium/third_party/WebKit/Source/modules/indexeddb/IDBCursorWithValue.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/chromium/third_party/WebKit/Source/modules/indexeddb/IDBCursorWithValue.h b/chromium/third_party/WebKit/Source/modules/indexeddb/IDBCursorWithValue.h
index 862baff8355..bf89431a689 100644
--- a/chromium/third_party/WebKit/Source/modules/indexeddb/IDBCursorWithValue.h
+++ b/chromium/third_party/WebKit/Source/modules/indexeddb/IDBCursorWithValue.h
@@ -29,6 +29,7 @@
#include "modules/indexeddb/IDBCursor.h"
#include "modules/indexeddb/IndexedDB.h"
#include "public/platform/WebIDBCursor.h"
+#include "public/platform/WebIDBTypes.h"
#include "wtf/PassOwnPtr.h"
namespace WebCore {
@@ -37,9 +38,9 @@ class IDBAny;
class IDBRequest;
class IDBTransaction;
-class IDBCursorWithValue : public IDBCursor {
+class IDBCursorWithValue FINAL : public IDBCursor {
public:
- static PassRefPtr<IDBCursorWithValue> create(PassOwnPtr<blink::WebIDBCursor>, IndexedDB::CursorDirection, IDBRequest*, IDBAny* source, IDBTransaction*);
+ static IDBCursorWithValue* create(PassOwnPtr<blink::WebIDBCursor>, blink::WebIDBCursorDirection, IDBRequest*, IDBAny* source, IDBTransaction*);
virtual ~IDBCursorWithValue();
// The value attribute defined in the IDL is simply implemented in IDBCursor (but not exposed via
@@ -49,14 +50,10 @@ public:
virtual bool isCursorWithValue() const OVERRIDE { return true; }
private:
- IDBCursorWithValue(PassOwnPtr<blink::WebIDBCursor>, IndexedDB::CursorDirection, IDBRequest*, IDBAny* source, IDBTransaction*);
+ IDBCursorWithValue(PassOwnPtr<blink::WebIDBCursor>, blink::WebIDBCursorDirection, IDBRequest*, IDBAny* source, IDBTransaction*);
};
-inline IDBCursorWithValue* toIDBCursorWithValue(IDBCursor* cursor)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(!cursor || cursor->isCursorWithValue());
- return static_cast<IDBCursorWithValue*>(cursor);
-}
+DEFINE_TYPE_CASTS(IDBCursorWithValue, IDBCursor, cursor, cursor->isCursorWithValue(), cursor.isCursorWithValue());
} // namespace WebCore