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