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

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

Issue 16581002: IndexedDB: Eliminate interfaces for IndexedDB{Factory,Database,Cursor} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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_transaction.h
diff --git a/content/browser/indexed_db/indexed_db_transaction.h b/content/browser/indexed_db/indexed_db_transaction.h
index 6ee7af0ae65273b34e7576946665572f079bca2b..e014faa74a19d3ddc21691ebc7124050559525fc 100644
--- a/content/browser/indexed_db/indexed_db_transaction.h
+++ b/content/browser/indexed_db/indexed_db_transaction.h
@@ -20,8 +20,8 @@
namespace content {
-class IndexedDBDatabaseImpl;
-class IndexedDBCursorImpl;
+class IndexedDBDatabase;
+class IndexedDBCursor;
class IndexedDBDatabaseCallbacksWrapper;
class IndexedDBTransaction : public base::RefCounted<IndexedDBTransaction> {
@@ -31,7 +31,7 @@ class IndexedDBTransaction : public base::RefCounted<IndexedDBTransaction> {
scoped_refptr<IndexedDBDatabaseCallbacksWrapper> callbacks,
const std::vector<int64>& scope,
indexed_db::TransactionMode,
- IndexedDBDatabaseImpl* db);
+ IndexedDBDatabase* db);
virtual void Abort();
void Commit();
@@ -53,8 +53,8 @@ class IndexedDBTransaction : public base::RefCounted<IndexedDBTransaction> {
void ScheduleTask(IndexedDBDatabase::TaskType,
Operation* task,
Operation* abort_task = NULL);
- void RegisterOpenCursor(IndexedDBCursorImpl* cursor);
- void UnregisterOpenCursor(IndexedDBCursorImpl* cursor);
+ void RegisterOpenCursor(IndexedDBCursor* cursor);
+ void UnregisterOpenCursor(IndexedDBCursor* cursor);
void AddPreemptiveEvent() { pending_preemptive_events_++; }
void DidCompletePreemptiveEvent() {
pending_preemptive_events_--;
@@ -65,7 +65,7 @@ class IndexedDBTransaction : public base::RefCounted<IndexedDBTransaction> {
}
int64 id() const { return id_; }
- IndexedDBDatabaseImpl* database() const { return database_.get(); }
+ IndexedDBDatabase* database() const { return database_.get(); }
IndexedDBDatabaseCallbacksWrapper* connection() const {
return callbacks_.get();
}
@@ -80,7 +80,7 @@ class IndexedDBTransaction : public base::RefCounted<IndexedDBTransaction> {
scoped_refptr<IndexedDBDatabaseCallbacksWrapper> callbacks,
const std::set<int64>& object_store_ids,
indexed_db::TransactionMode,
- IndexedDBDatabaseImpl* db);
+ IndexedDBDatabase* db);
enum State {
UNUSED, // Created, but no tasks yet.
@@ -105,7 +105,7 @@ class IndexedDBTransaction : public base::RefCounted<IndexedDBTransaction> {
State state_;
bool commit_pending_;
scoped_refptr<IndexedDBDatabaseCallbacksWrapper> callbacks_;
- scoped_refptr<IndexedDBDatabaseImpl> database_;
+ scoped_refptr<IndexedDBDatabase> database_;
class TaskQueue {
public:
@@ -142,7 +142,7 @@ class IndexedDBTransaction : public base::RefCounted<IndexedDBTransaction> {
base::OneShotTimer<IndexedDBTransaction> task_timer_;
int pending_preemptive_events_;
- std::set<IndexedDBCursorImpl*> open_cursors_;
+ std::set<IndexedDBCursor*> open_cursors_;
};
} // namespace content
« no previous file with comments | « content/browser/indexed_db/indexed_db_leveldb_coding.cc ('k') | content/browser/indexed_db/indexed_db_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698