summaryrefslogtreecommitdiffstats
path: root/content/renderer/renderer_webidbcursor_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/renderer/renderer_webidbcursor_impl.h')
-rw-r--r--content/renderer/renderer_webidbcursor_impl.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/content/renderer/renderer_webidbcursor_impl.h b/content/renderer/renderer_webidbcursor_impl.h
new file mode 100644
index 0000000..147345f
--- /dev/null
+++ b/content/renderer/renderer_webidbcursor_impl.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_RENDERER_WEBIDBCURSOR_IMPL_H_
+#define CONTENT_RENDERER_RENDERER_WEBIDBCURSOR_IMPL_H_
+
+#include "base/basictypes.h"
+#include "content/common/indexed_db_key.h"
+#include "content/common/serialized_script_value.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCursor.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptValue.h"
+
+class RendererWebIDBCursorImpl : public WebKit::WebIDBCursor {
+ public:
+ RendererWebIDBCursorImpl(int32 idb_cursor_id);
+ virtual ~RendererWebIDBCursorImpl();
+
+ virtual unsigned short direction() const;
+ virtual WebKit::WebIDBKey key() const;
+ virtual WebKit::WebIDBKey primaryKey() const;
+ virtual void value(WebKit::WebSerializedScriptValue&,
+ WebKit::WebIDBKey&) const;
+ virtual void update(const WebKit::WebSerializedScriptValue& value,
+ WebKit::WebIDBCallbacks* callback,
+ WebKit::WebExceptionCode& ec);
+ virtual void continueFunction(const WebKit::WebIDBKey& key,
+ WebKit::WebIDBCallbacks* callback,
+ WebKit::WebExceptionCode& ec);
+ virtual void remove(WebKit::WebIDBCallbacks* callback,
+ WebKit::WebExceptionCode& ec);
+
+ private:
+ int32 idb_cursor_id_;
+};
+
+#endif // CONTENT_RENDERER_RENDERER_WEBIDBCURSOR_IMPL_H_