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

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

Issue 18224002: IndexedDB: Eliminate IndexedDBDatabaseCallbacksWrapper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include fix for win 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_database.cc
diff --git a/content/browser/indexed_db/indexed_db_database.cc b/content/browser/indexed_db/indexed_db_database.cc
index d2ee583b43a52e7f8c0af59353886ed28630e3bb..05c515af0ddb3c89ee59153f575c54db08d2b380 100644
--- a/content/browser/indexed_db/indexed_db_database.cc
+++ b/content/browser/indexed_db/indexed_db_database.cc
@@ -64,7 +64,7 @@ class IndexedDBDatabase::VersionChangeOperation
int64 transaction_id,
int64 version,
scoped_refptr<IndexedDBCallbacksWrapper> callbacks,
- scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks,
+ scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks,
WebKit::WebIDBCallbacks::DataLoss data_loss)
: database_(database),
transaction_id_(transaction_id),
@@ -79,7 +79,7 @@ class IndexedDBDatabase::VersionChangeOperation
int64 transaction_id_;
int64 version_;
scoped_refptr<IndexedDBCallbacksWrapper> callbacks_;
- scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks_;
+ scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks_;
WebKit::WebIDBCallbacks::DataLoss data_loss_;
};
@@ -373,7 +373,7 @@ class IndexedDBDatabase::PendingOpenCall {
public:
PendingOpenCall(
scoped_refptr<IndexedDBCallbacksWrapper> callbacks,
- scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks,
+ scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks,
int64 transaction_id,
int64 version)
: callbacks_(callbacks),
@@ -381,7 +381,7 @@ class IndexedDBDatabase::PendingOpenCall {
version_(version),
transaction_id_(transaction_id) {}
scoped_refptr<IndexedDBCallbacksWrapper> Callbacks() { return callbacks_; }
- scoped_refptr<IndexedDBDatabaseCallbacksWrapper> DatabaseCallbacks() {
+ scoped_refptr<IndexedDBDatabaseCallbacks> DatabaseCallbacks() {
return database_callbacks_;
}
int64 Version() { return version_; }
@@ -389,7 +389,7 @@ class IndexedDBDatabase::PendingOpenCall {
private:
scoped_refptr<IndexedDBCallbacksWrapper> callbacks_;
- scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks_;
+ scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks_;
int64 version_;
const int64 transaction_id_;
};
@@ -1512,7 +1512,7 @@ void IndexedDBDatabase::ProcessPendingCalls() {
void IndexedDBDatabase::CreateTransaction(
int64 transaction_id,
- scoped_refptr<IndexedDBDatabaseCallbacksWrapper> callbacks,
+ scoped_refptr<IndexedDBDatabaseCallbacks> callbacks,
const std::vector<int64>& object_store_ids,
uint16 mode) {
@@ -1537,7 +1537,7 @@ bool IndexedDBDatabase::IsOpenConnectionBlocked() const {
void IndexedDBDatabase::OpenConnection(
scoped_refptr<IndexedDBCallbacksWrapper> callbacks,
- scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks,
+ scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks,
int64 transaction_id,
int64 version) {
const WebKit::WebIDBCallbacks::DataLoss kDataLoss =
@@ -1548,7 +1548,7 @@ void IndexedDBDatabase::OpenConnection(
void IndexedDBDatabase::OpenConnection(
scoped_refptr<IndexedDBCallbacksWrapper> callbacks,
- scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks,
+ scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks,
int64 transaction_id,
int64 version,
WebKit::WebIDBCallbacks::DataLoss data_loss) {
@@ -1635,7 +1635,7 @@ void IndexedDBDatabase::OpenConnection(
void IndexedDBDatabase::RunVersionChangeTransaction(
scoped_refptr<IndexedDBCallbacksWrapper> callbacks,
- scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks,
+ scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks,
int64 transaction_id,
int64 requested_version,
WebKit::WebIDBCallbacks::DataLoss data_loss) {
@@ -1672,7 +1672,7 @@ void IndexedDBDatabase::RunVersionChangeTransaction(
void IndexedDBDatabase::RunVersionChangeTransactionFinal(
scoped_refptr<IndexedDBCallbacksWrapper> callbacks,
- scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks,
+ scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks,
int64 transaction_id,
int64 requested_version) {
const WebKit::WebIDBCallbacks::DataLoss kDataLoss =
@@ -1686,7 +1686,7 @@ void IndexedDBDatabase::RunVersionChangeTransactionFinal(
void IndexedDBDatabase::RunVersionChangeTransactionFinal(
scoped_refptr<IndexedDBCallbacksWrapper> callbacks,
- scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks,
+ scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks,
int64 transaction_id,
int64 requested_version,
WebKit::WebIDBCallbacks::DataLoss data_loss) {
@@ -1757,7 +1757,7 @@ void IndexedDBDatabase::DeleteDatabaseFinal(
}
void IndexedDBDatabase::Close(
- scoped_refptr<IndexedDBDatabaseCallbacksWrapper> callbacks) {
+ scoped_refptr<IndexedDBDatabaseCallbacks> callbacks) {
DCHECK(callbacks.get());
DCHECK(database_callbacks_set_.has(callbacks));
« no previous file with comments | « content/browser/indexed_db/indexed_db_database.h ('k') | content/browser/indexed_db/indexed_db_database_callbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698