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/public/common/serialized_script_value.h" | 10 #include "content/public/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, const IndexedDBKey& key, | 18 RendererWebIDBCursorImpl(int32 idb_cursor_id); |
19 const IndexedDBKey& primary_key, | |
20 const content::SerializedScriptValue& value); | |
21 virtual ~RendererWebIDBCursorImpl(); | 19 virtual ~RendererWebIDBCursorImpl(); |
22 | 20 |
23 virtual unsigned short direction() const; | 21 virtual unsigned short direction() const; |
24 virtual WebKit::WebIDBKey key() const; | 22 virtual WebKit::WebIDBKey key() const; |
25 virtual WebKit::WebIDBKey primaryKey() const; | 23 virtual WebKit::WebIDBKey primaryKey() const; |
26 virtual WebKit::WebSerializedScriptValue value() const; | 24 virtual WebKit::WebSerializedScriptValue value() const; |
27 virtual void update(const WebKit::WebSerializedScriptValue& value, | 25 virtual void update(const WebKit::WebSerializedScriptValue& value, |
28 WebKit::WebIDBCallbacks* callback, | 26 WebKit::WebIDBCallbacks* callback, |
29 WebKit::WebExceptionCode& ec); | 27 WebKit::WebExceptionCode& ec); |
30 virtual void continueFunction(const WebKit::WebIDBKey& key, | 28 virtual void continueFunction(const WebKit::WebIDBKey& key, |
31 WebKit::WebIDBCallbacks* callback, | 29 WebKit::WebIDBCallbacks* callback, |
32 WebKit::WebExceptionCode& ec); | 30 WebKit::WebExceptionCode& ec); |
33 virtual void deleteFunction(WebKit::WebIDBCallbacks* callback, | 31 virtual void deleteFunction(WebKit::WebIDBCallbacks* callback, |
34 WebKit::WebExceptionCode& ec); | 32 WebKit::WebExceptionCode& ec); |
35 | 33 |
34 void setKeyAndValue(const IndexedDBKey& key, const IndexedDBKey& primary_key, | |
michaeln
2011/11/01 18:38:37
since this isn't defined in the WebKitAPI, please
hans
2011/11/02 17:16:58
Done.
| |
35 const content::SerializedScriptValue& value); | |
36 | |
36 private: | 37 private: |
37 int32 idb_cursor_id_; | 38 int32 idb_cursor_id_; |
38 const IndexedDBKey key_; | 39 IndexedDBKey key_; |
39 const IndexedDBKey primary_key_; | 40 IndexedDBKey primary_key_; |
40 const content::SerializedScriptValue value_; | 41 content::SerializedScriptValue value_; |
41 }; | 42 }; |
42 | 43 |
43 #endif // CONTENT_RENDERER_RENDERER_WEBIDBCURSOR_IMPL_H_ | 44 #endif // CONTENT_RENDERER_RENDERER_WEBIDBCURSOR_IMPL_H_ |
OLD | NEW |