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

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

Issue 18241003: IndexedDB: Remove IndexedDBCallbacksWrapper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: content/browser/indexed_db/indexed_db_cursor.cc
diff --git a/content/browser/indexed_db/indexed_db_cursor.cc b/content/browser/indexed_db/indexed_db_cursor.cc
index 162407b778108afb1b3c9ec8319523045a628840..1e219e829e48e8aaae33bc59fdb0a90352043b2c 100644
--- a/content/browser/indexed_db/indexed_db_cursor.cc
+++ b/content/browser/indexed_db/indexed_db_cursor.cc
@@ -6,7 +6,7 @@
#include "base/logging.h"
#include "content/browser/indexed_db/indexed_db_backing_store.h"
-#include "content/browser/indexed_db/indexed_db_callbacks_wrapper.h"
+#include "content/browser/indexed_db/indexed_db_callbacks.h"
#include "content/browser/indexed_db/indexed_db_database.h"
#include "content/browser/indexed_db/indexed_db_database_error.h"
#include "content/browser/indexed_db/indexed_db_tracing.h"
@@ -20,14 +20,14 @@ class IndexedDBCursor::CursorIterationOperation
public:
CursorIterationOperation(scoped_refptr<IndexedDBCursor> cursor,
scoped_ptr<IndexedDBKey> key,
- scoped_refptr<IndexedDBCallbacksWrapper> callbacks)
+ scoped_refptr<IndexedDBCallbacks> callbacks)
: cursor_(cursor), key_(key.Pass()), callbacks_(callbacks) {}
virtual void Perform(IndexedDBTransaction* transaction) OVERRIDE;
private:
scoped_refptr<IndexedDBCursor> cursor_;
scoped_ptr<IndexedDBKey> key_;
- scoped_refptr<IndexedDBCallbacksWrapper> callbacks_;
+ scoped_refptr<IndexedDBCallbacks> callbacks_;
};
class IndexedDBCursor::CursorAdvanceOperation
@@ -35,23 +35,22 @@ class IndexedDBCursor::CursorAdvanceOperation
public:
CursorAdvanceOperation(scoped_refptr<IndexedDBCursor> cursor,
uint32 count,
- scoped_refptr<IndexedDBCallbacksWrapper> callbacks)
+ scoped_refptr<IndexedDBCallbacks> callbacks)
: cursor_(cursor), count_(count), callbacks_(callbacks) {}
virtual void Perform(IndexedDBTransaction* transaction) OVERRIDE;
private:
scoped_refptr<IndexedDBCursor> cursor_;
uint32 count_;
- scoped_refptr<IndexedDBCallbacksWrapper> callbacks_;
+ scoped_refptr<IndexedDBCallbacks> callbacks_;
};
class IndexedDBCursor::CursorPrefetchIterationOperation
: public IndexedDBTransaction::Operation {
public:
- CursorPrefetchIterationOperation(
- scoped_refptr<IndexedDBCursor> cursor,
- int number_to_fetch,
- scoped_refptr<IndexedDBCallbacksWrapper> callbacks)
+ CursorPrefetchIterationOperation(scoped_refptr<IndexedDBCursor> cursor,
+ int number_to_fetch,
+ scoped_refptr<IndexedDBCallbacks> callbacks)
: cursor_(cursor),
number_to_fetch_(number_to_fetch),
callbacks_(callbacks) {}
@@ -60,7 +59,7 @@ class IndexedDBCursor::CursorPrefetchIterationOperation
private:
scoped_refptr<IndexedDBCursor> cursor_;
int number_to_fetch_;
- scoped_refptr<IndexedDBCallbacksWrapper> callbacks_;
+ scoped_refptr<IndexedDBCallbacks> callbacks_;
};
IndexedDBCursor::IndexedDBCursor(
@@ -82,16 +81,15 @@ IndexedDBCursor::~IndexedDBCursor() {
void IndexedDBCursor::ContinueFunction(
scoped_ptr<IndexedDBKey> key,
- scoped_refptr<IndexedDBCallbacksWrapper> callbacks) {
+ scoped_refptr<IndexedDBCallbacks> callbacks) {
IDB_TRACE("IndexedDBCursor::Continue");
transaction_->ScheduleTask(
task_type_, new CursorIterationOperation(this, key.Pass(), callbacks));
}
-void IndexedDBCursor::Advance(
- uint32 count,
- scoped_refptr<IndexedDBCallbacksWrapper> callbacks) {
+void IndexedDBCursor::Advance(uint32 count,
+ scoped_refptr<IndexedDBCallbacks> callbacks) {
IDB_TRACE("IndexedDBCursor::Advance");
transaction_->ScheduleTask(
@@ -128,7 +126,7 @@ void IndexedDBCursor::CursorIterationOperation::Perform(
void IndexedDBCursor::PrefetchContinue(
int number_to_fetch,
- scoped_refptr<IndexedDBCallbacksWrapper> callbacks) {
+ scoped_refptr<IndexedDBCallbacks> callbacks) {
IDB_TRACE("IndexedDBCursor::PrefetchContinue");
transaction_->ScheduleTask(

Powered by Google App Engine
This is Rietveld 408576698