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

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

Issue 16573003: Remove content/browser dependency on WebKit::WebIDBCallbacks and WebKit::WebIDBDatabaseCallbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix namespace issues 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 | « content/browser/indexed_db/webidbcursor_impl.cc ('k') | content/browser/indexed_db/webidbdatabase_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b5ec591f542391c083bc4c00e4051013558613bc..6e42310db86e7c46019204013c2dd028fdd0ac2f 100644
--- a/content/browser/indexed_db/webidbdatabase_impl.h
+++ b/content/browser/indexed_db/webidbdatabase_impl.h
@@ -11,18 +11,17 @@
#include "third_party/WebKit/public/platform/WebIDBDatabase.h"
namespace WebKit {
-class WebIDBDatabaseCallbacks;
class WebIDBDatabaseError;
class WebIDBDatabaseMetadata;
}
namespace content {
+class IndexedDBCallbacksBase;
class IndexedDBDatabase;
+class IndexedDBDatabaseCallbacks;
class IndexedDBDatabaseCallbacksWrapper;
-// See comment in WebIDBFactory for a high level overview these classes.
-class CONTENT_EXPORT WebIDBDatabaseImpl
- : NON_EXPORTED_BASE(public WebKit::WebIDBDatabase) {
+class CONTENT_EXPORT WebIDBDatabaseImpl {
public:
WebIDBDatabaseImpl(
scoped_refptr<IndexedDBDatabase> db,
@@ -37,7 +36,7 @@ class CONTENT_EXPORT WebIDBDatabaseImpl
virtual void deleteObjectStore(long long object_store_id,
long long transaction_id);
virtual void createTransaction(long long id,
- WebKit::WebIDBDatabaseCallbacks* callbacks,
+ IndexedDBDatabaseCallbacks* callbacks,
const WebKit::WebVector<long long>& scope,
unsigned short mode);
virtual void forceClose();
@@ -52,20 +51,23 @@ class CONTENT_EXPORT WebIDBDatabaseImpl
long long index_id,
const WebKit::WebIDBKeyRange& range,
bool key_only,
- WebKit::WebIDBCallbacks* callbacks);
+ IndexedDBCallbacksBase* callbacks);
virtual void put(long long transaction_id,
long long object_store_id,
const WebKit::WebData& value,
const WebKit::WebIDBKey& key,
- PutMode mode,
- WebKit::WebIDBCallbacks* callbacks,
+ WebKit::WebIDBDatabase::PutMode mode,
+ IndexedDBCallbacksBase* callbacks,
const WebKit::WebVector<long long>& index_ids,
- const WebKit::WebVector<WebIndexKeys>& index_keys);
- virtual void setIndexKeys(long long transaction_id,
- long long object_store_id,
- const WebKit::WebIDBKey& key,
- const WebKit::WebVector<long long>& index_ids,
- const WebKit::WebVector<WebIndexKeys>& index_keys);
+ const WebKit::WebVector<
+ WebKit::WebIDBDatabase::WebIndexKeys>& index_keys);
+ virtual void setIndexKeys(
+ long long transaction_id,
+ long long object_store_id,
+ const WebKit::WebIDBKey& key,
+ const WebKit::WebVector<long long>& index_ids,
+ const WebKit::WebVector<WebKit::WebIDBDatabase::WebIndexKeys>&
+ index_keys);
virtual void setIndexesReady(long long transaction_id,
long long object_store_id,
const WebKit::WebVector<long long>& index_ids);
@@ -75,20 +77,20 @@ class CONTENT_EXPORT WebIDBDatabaseImpl
const WebKit::WebIDBKeyRange& range,
unsigned short direction,
bool key_only,
- TaskType task_type,
- WebKit::WebIDBCallbacks* callbacks);
+ WebKit::WebIDBDatabase::TaskType task_type,
+ IndexedDBCallbacksBase* callbacks);
virtual void count(long long transaction_id,
long long object_store_id,
long long index_id,
const WebKit::WebIDBKeyRange& range,
- WebKit::WebIDBCallbacks* callbacks);
+ IndexedDBCallbacksBase* callbacks);
virtual void deleteRange(long long transaction_id,
long long object_store_id,
const WebKit::WebIDBKeyRange& range,
- WebKit::WebIDBCallbacks* callbacks);
+ IndexedDBCallbacksBase* callbacks);
virtual void clear(long long transaction_id,
long long object_store_id,
- WebKit::WebIDBCallbacks* callbacks);
+ IndexedDBCallbacksBase* callbacks);
virtual void createIndex(long long transaction_id,
long long object_store_id,
« no previous file with comments | « content/browser/indexed_db/webidbcursor_impl.cc ('k') | content/browser/indexed_db/webidbdatabase_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698