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); |
19 virtual ~RendererWebIDBCursorImpl(); | 19 virtual ~RendererWebIDBCursorImpl(); |
20 | 20 |
21 virtual unsigned short direction() const; | 21 virtual unsigned short direction() const; |
22 virtual WebKit::WebIDBKey key() const; | |
23 virtual WebKit::WebIDBKey primaryKey() const; | |
24 virtual WebKit::WebSerializedScriptValue value() const; | |
michaeln
2011/09/04 23:08:16
This is an example of that 'difficult to review' t
dgrogan
2011/09/07 01:15:19
The webkit patch stores key, primary key, and valu
| |
25 virtual void update(const WebKit::WebSerializedScriptValue& value, | 22 virtual void update(const WebKit::WebSerializedScriptValue& value, |
26 WebKit::WebIDBCallbacks* callback, | 23 WebKit::WebIDBCallbacks* callback, |
27 WebKit::WebExceptionCode& ec); | 24 WebKit::WebExceptionCode& ec); |
28 virtual void continueFunction(const WebKit::WebIDBKey& key, | 25 virtual void continueFunction(const WebKit::WebIDBKey& key, |
29 WebKit::WebIDBCallbacks* callback, | 26 WebKit::WebIDBCallbacks* callback, |
30 WebKit::WebExceptionCode& ec); | 27 WebKit::WebExceptionCode& ec); |
31 virtual void deleteFunction(WebKit::WebIDBCallbacks* callback, | 28 virtual void deleteFunction(WebKit::WebIDBCallbacks* callback, |
32 WebKit::WebExceptionCode& ec); | 29 WebKit::WebExceptionCode& ec); |
33 | 30 |
34 private: | 31 private: |
35 int32 idb_cursor_id_; | 32 int32 idb_cursor_id_; |
36 }; | 33 }; |
37 | 34 |
38 #endif // CONTENT_RENDERER_RENDERER_WEBIDBCURSOR_IMPL_H_ | 35 #endif // CONTENT_RENDERER_RENDERER_WEBIDBCURSOR_IMPL_H_ |
OLD | NEW |