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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value); | 91 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value); |
| 92 virtual void onSuccessCursorContinue(); |
92 | 93 |
93 private: | 94 private: |
94 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); | 95 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); |
95 }; | 96 }; |
96 | 97 |
97 // WebIDBKey is implemented in WebKit as opposed to being an interface Chromium | 98 // 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 | 99 // implements. Thus we pass a const ___& version and thus we need this |
99 // specialization. | 100 // specialization. |
100 template <> | 101 template <> |
101 class IndexedDBCallbacks<WebKit::WebIDBKey> | 102 class IndexedDBCallbacks<WebKit::WebIDBKey> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 IndexedDBDispatcherHost* dispatcher_host, int32 response_id) | 140 IndexedDBDispatcherHost* dispatcher_host, int32 response_id) |
140 : IndexedDBCallbacksBase(dispatcher_host, response_id) { } | 141 : IndexedDBCallbacksBase(dispatcher_host, response_id) { } |
141 | 142 |
142 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value); | 143 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value); |
143 | 144 |
144 private: | 145 private: |
145 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); | 146 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); |
146 }; | 147 }; |
147 | 148 |
148 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ | 149 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ |
OLD | NEW |