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

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

Issue 18241003: IndexedDB: Remove IndexedDBCallbacksWrapper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include/Forward Declare tidying 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/webidbdatabase_impl.h
diff --git a/content/browser/indexed_db/webidbdatabase_impl.h b/content/browser/indexed_db/webidbdatabase_impl.h
index 78e06954ee00582d06f188a283b7e7cf9af48006..613b1af7429603da916bce235d2b37690bd355ce 100644
--- a/content/browser/indexed_db/webidbdatabase_impl.h
+++ b/content/browser/indexed_db/webidbdatabase_impl.h
@@ -7,19 +7,17 @@
#include "base/memory/ref_counted.h"
#include "content/browser/indexed_db/indexed_db_database.h"
+#include "content/browser/indexed_db/indexed_db_database_callbacks.h"
#include "third_party/WebKit/public/platform/WebIDBDatabase.h"
namespace content {
-class IndexedDBCallbacksBase;
-class IndexedDBDatabase;
-class IndexedDBDatabaseCallbacks;
+class IndexedDBCallbacks;
class IndexedDBDatabaseError;
class CONTENT_EXPORT WebIDBDatabaseImpl {
public:
- WebIDBDatabaseImpl(
- scoped_refptr<IndexedDBDatabase> db,
- scoped_refptr<IndexedDBDatabaseCallbacks> callbacks);
+ WebIDBDatabaseImpl(scoped_refptr<IndexedDBDatabase> db,
+ scoped_refptr<IndexedDBDatabaseCallbacks> callbacks);
virtual ~WebIDBDatabaseImpl();
typedef std::vector<IndexedDBKey> IndexKeys;
@@ -46,13 +44,13 @@ class CONTENT_EXPORT WebIDBDatabaseImpl {
long long index_id,
const IndexedDBKeyRange& range,
bool key_only,
- IndexedDBCallbacksBase* callbacks);
+ scoped_refptr<IndexedDBCallbacks> callbacks);
virtual void put(long long transaction_id,
long long object_store_id,
std::vector<char>* value,
const IndexedDBKey& key,
WebKit::WebIDBDatabase::PutMode mode,
- IndexedDBCallbacksBase* callbacks,
+ scoped_refptr<IndexedDBCallbacks> callbacks,
const std::vector<int64>& index_ids,
const std::vector<IndexKeys>& index_keys);
virtual void setIndexKeys(long long transaction_id,
@@ -70,19 +68,19 @@ class CONTENT_EXPORT WebIDBDatabaseImpl {
unsigned short direction,
bool key_only,
WebKit::WebIDBDatabase::TaskType task_type,
- IndexedDBCallbacksBase* callbacks);
+ scoped_refptr<IndexedDBCallbacks> callbacks);
virtual void count(long long transaction_id,
long long object_store_id,
long long index_id,
const IndexedDBKeyRange& range,
- IndexedDBCallbacksBase* callbacks);
+ scoped_refptr<IndexedDBCallbacks> callbacks);
virtual void deleteRange(long long transaction_id,
long long object_store_id,
const IndexedDBKeyRange& range,
- IndexedDBCallbacksBase* callbacks);
+ scoped_refptr<IndexedDBCallbacks> callbacks);
virtual void clear(long long transaction_id,
long long object_store_id,
- IndexedDBCallbacksBase* callbacks);
+ scoped_refptr<IndexedDBCallbacks> callbacks);
virtual void createIndex(long long transaction_id,
long long object_store_id,
« no previous file with comments | « content/browser/indexed_db/indexed_db_transaction.h ('k') | content/browser/indexed_db/webidbdatabase_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698