Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(528)

Unified Diff: content/browser/indexed_db/indexed_db_callbacks.h

Issue 18145004: IndexedDB: Eliminate WebIDBCursor wrapper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_callbacks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_callbacks.h
diff --git a/content/browser/indexed_db/indexed_db_callbacks.h b/content/browser/indexed_db/indexed_db_callbacks.h
index 948d32c67a1d7501f360160c3bbd08e0fcdd91c1..499691a197d16d13c4ab2020023d77504ce11a45 100644
--- a/content/browser/indexed_db/indexed_db_callbacks.h
+++ b/content/browser/indexed_db/indexed_db_callbacks.h
@@ -13,8 +13,8 @@
#include "third_party/WebKit/public/platform/WebIDBDatabase.h"
namespace content {
+class IndexedDBCursor;
class IndexedDBDatabaseError;
-class WebIDBCursorImpl;
class WebIDBDatabaseImpl;
struct IndexedDBDatabaseMetadata;
@@ -33,7 +33,7 @@ class IndexedDBCallbacksBase {
WebIDBDatabaseImpl* database,
const IndexedDBDatabaseMetadata&,
WebKit::WebIDBCallbacks::DataLoss data_loss);
- virtual void onSuccess(WebIDBCursorImpl* idb_object,
+ virtual void onSuccess(IndexedDBCursor* idb_object,
const IndexedDBKey& key,
const IndexedDBKey& primaryKey,
std::vector<char>* value);
@@ -102,8 +102,8 @@ class IndexedDBCallbacksDatabase : public IndexedDBCallbacksBase {
DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacksDatabase);
};
-// WebIDBCursorImpl uses:
-// * onSuccess(WebIDBCursorImpl*, WebIDBKey, WebIDBKey, WebData)
+// IndexedDBCursor uses:
+// * onSuccess(IndexedDBCursor*, WebIDBKey, WebIDBKey, WebData)
// when an openCursor()/openKeyCursor() call has succeeded,
// * onSuccess(WebIDBKey, WebIDBKey, WebData)
// when an advance()/continue() call has succeeded, or
@@ -111,7 +111,7 @@ class IndexedDBCallbacksDatabase : public IndexedDBCallbacksBase {
// to indicate it does not contain any data, i.e., there is no key within
// the key range, or it has reached the end.
template <>
-class IndexedDBCallbacks<WebIDBCursorImpl> : public IndexedDBCallbacksBase {
+class IndexedDBCallbacks<IndexedDBCursor> : public IndexedDBCallbacksBase {
public:
IndexedDBCallbacks(IndexedDBDispatcherHost* dispatcher_host,
int32 ipc_thread_id,
@@ -122,7 +122,7 @@ class IndexedDBCallbacks<WebIDBCursorImpl> : public IndexedDBCallbacksBase {
ipc_callbacks_id),
ipc_cursor_id_(ipc_cursor_id) {}
- virtual void onSuccess(WebIDBCursorImpl* idb_object,
+ virtual void onSuccess(IndexedDBCursor* idb_object,
const IndexedDBKey& key,
const IndexedDBKey& primaryKey,
std::vector<char>* value);
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_callbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698