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_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ | 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ |
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ | 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // onSuccess() without params to indicate it does not contain any data, i.e., | 80 // onSuccess() without params to indicate it does not contain any data, i.e., |
81 // there is no key within the key range, or it has reached the end. | 81 // there is no key within the key range, or it has reached the end. |
82 template <> | 82 template <> |
83 class IndexedDBCallbacks<WebKit::WebIDBCursor> | 83 class IndexedDBCallbacks<WebKit::WebIDBCursor> |
84 : public IndexedDBCallbacksBase { | 84 : public IndexedDBCallbacksBase { |
85 public: | 85 public: |
86 IndexedDBCallbacks( | 86 IndexedDBCallbacks( |
87 IndexedDBDispatcherHost* dispatcher_host, int32 response_id) | 87 IndexedDBDispatcherHost* dispatcher_host, int32 response_id) |
88 : IndexedDBCallbacksBase(dispatcher_host, response_id) { } | 88 : IndexedDBCallbacksBase(dispatcher_host, response_id) { } |
89 | 89 |
90 virtual void onSuccess(WebKit::WebIDBCursor* idb_object); | 90 virtual void onSuccess(WebKit::WebIDBCursor* idb_object, |
| 91 const WebKit::WebIDBKey& key, const WebKit::WebIDBKey& primary_key, |
| 92 const WebKit::WebSerializedScriptValue& value); |
91 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value); | 93 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value); |
92 | 94 |
93 private: | 95 private: |
94 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); | 96 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); |
95 }; | 97 }; |
96 | 98 |
97 // WebIDBKey is implemented in WebKit as opposed to being an interface Chromium | 99 // WebIDBKey is implemented in WebKit as opposed to being an interface Chromium |
98 // implements. Thus we pass a const ___& version and thus we need this | 100 // implements. Thus we pass a const ___& version and thus we need this |
99 // specialization. | 101 // specialization. |
100 template <> | 102 template <> |
(...skipping 21 matching lines...) Expand all Loading... |
122 IndexedDBDispatcherHost* dispatcher_host, int32 response_id) | 124 IndexedDBDispatcherHost* dispatcher_host, int32 response_id) |
123 : IndexedDBCallbacksBase(dispatcher_host, response_id) { } | 125 : IndexedDBCallbacksBase(dispatcher_host, response_id) { } |
124 | 126 |
125 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value); | 127 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value); |
126 | 128 |
127 private: | 129 private: |
128 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); | 130 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); |
129 }; | 131 }; |
130 | 132 |
131 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ | 133 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ |
OLD | NEW |