OLD | NEW |
| (Empty) |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_RENDERER_RENDERER_WEBIDBCURSOR_IMPL_H_ | |
6 #define CHROME_RENDERER_RENDERER_WEBIDBCURSOR_IMPL_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "content/common/indexed_db_key.h" | |
10 #include "content/common/serialized_script_value.h" | |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h" | |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCursor.h" | |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h" | |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptVa
lue.h" | |
15 | |
16 class RendererWebIDBCursorImpl : public WebKit::WebIDBCursor { | |
17 public: | |
18 RendererWebIDBCursorImpl(int32 idb_cursor_id); | |
19 virtual ~RendererWebIDBCursorImpl(); | |
20 | |
21 virtual unsigned short direction() const; | |
22 virtual WebKit::WebIDBKey key() const; | |
23 virtual WebKit::WebIDBKey primaryKey() const; | |
24 virtual void value(WebKit::WebSerializedScriptValue&, | |
25 WebKit::WebIDBKey&) const; | |
26 virtual void update(const WebKit::WebSerializedScriptValue& value, | |
27 WebKit::WebIDBCallbacks* callback, | |
28 WebKit::WebExceptionCode& ec); | |
29 virtual void continueFunction(const WebKit::WebIDBKey& key, | |
30 WebKit::WebIDBCallbacks* callback, | |
31 WebKit::WebExceptionCode& ec); | |
32 virtual void remove(WebKit::WebIDBCallbacks* callback, | |
33 WebKit::WebExceptionCode& ec); | |
34 | |
35 private: | |
36 int32 idb_cursor_id_; | |
37 }; | |
38 | |
39 #endif // CHROME_RENDERER_RENDERER_WEBIDBCURSOR_IMPL_H_ | |
OLD | NEW |