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

Unified Diff: content/browser/indexed_db/indexed_db_cursor_impl.cc

Issue 16337010: Remove IDBCursorBackendInterface::deleteFunction (part 2/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
Index: content/browser/indexed_db/indexed_db_cursor_impl.cc
diff --git a/content/browser/indexed_db/indexed_db_cursor_impl.cc b/content/browser/indexed_db/indexed_db_cursor_impl.cc
index a11e8808833910ef4a754e4cbee583b701a8aaad..56d3b5c3654811a1c9cba9f78400f4f5de1878fa 100644
--- a/content/browser/indexed_db/indexed_db_cursor_impl.cc
+++ b/content/browser/indexed_db/indexed_db_cursor_impl.cc
@@ -67,12 +67,10 @@ IndexedDBCursorImpl::IndexedDBCursorImpl(
scoped_ptr<IndexedDBBackingStore::Cursor> cursor,
indexed_db::CursorType cursor_type,
IndexedDBDatabase::TaskType task_type,
- IndexedDBTransaction* transaction,
- int64 object_store_id)
+ IndexedDBTransaction* transaction)
: task_type_(task_type),
cursor_type_(cursor_type),
transaction_(transaction),
- object_store_id_(object_store_id),
cursor_(cursor.Pass()),
closed_(false) {
transaction_->RegisterOpenCursor(this);
@@ -126,16 +124,6 @@ void IndexedDBCursorImpl::CursorIterationOperation::Perform(
cursor_->key(), cursor_->primary_key(), cursor_->Value());
}
-void IndexedDBCursorImpl::DeleteFunction(
- scoped_refptr<IndexedDBCallbacksWrapper> callbacks) {
- IDB_TRACE("IndexedDBCursorImpl::delete");
- DCHECK_NE(transaction_->mode(), indexed_db::TRANSACTION_READ_ONLY);
- scoped_ptr<IndexedDBKeyRange> key_range =
- make_scoped_ptr(new IndexedDBKeyRange(cursor_->primary_key()));
- transaction_->database()->DeleteRange(
- transaction_->id(), object_store_id_, key_range.Pass(), callbacks);
-}
-
void IndexedDBCursorImpl::PrefetchContinue(
int number_to_fetch,
scoped_refptr<IndexedDBCallbacksWrapper> callbacks) {

Powered by Google App Engine
This is Rietveld 408576698