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

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

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring after Passing URLRequestContextGetter. Created 4 years, 4 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 ad5c03e79102e99a48dd11d08be61be749d8bd5e..db6640420c9ff8af67562ac934c44ad8cfa8b6a5 100644
--- a/content/browser/indexed_db/indexed_db_transaction.h
+++ b/content/browser/indexed_db/indexed_db_transaction.h
@@ -7,10 +7,12 @@
#include <stdint.h>
+#include <map>
#include <memory>
#include <queue>
#include <set>
#include <stack>
+#include <vector>
#include "base/gtest_prod_util.h"
#include "base/macros.h"
@@ -28,7 +30,7 @@ namespace content {
class BlobWriteCallbackImpl;
class IndexedDBCursor;
-class IndexedDBDatabaseCallbacks;
+class IndexedDBChangeHandler;
class IndexedDBObservation;
class IndexedDBObserverChanges;
@@ -86,7 +88,9 @@ class CONTENT_EXPORT IndexedDBTransaction
int64_t id() const { return id_; }
IndexedDBDatabase* database() const { return database_.get(); }
- IndexedDBDatabaseCallbacks* callbacks() const { return callbacks_.get(); }
+ IndexedDBChangeHandler* change_handler() const {
+ return change_handler_.get();
+ }
IndexedDBConnection* connection() const { return connection_.get(); }
State state() const { return state_; }
@@ -149,7 +153,7 @@ class CONTENT_EXPORT IndexedDBTransaction
State state_;
bool commit_pending_;
base::WeakPtr<IndexedDBConnection> connection_;
- scoped_refptr<IndexedDBDatabaseCallbacks> callbacks_;
+ scoped_refptr<IndexedDBChangeHandler> change_handler_;
scoped_refptr<IndexedDBDatabase> database_;
// Observers in pending queue do not listen to changes until activated.
« no previous file with comments | « content/browser/indexed_db/indexed_db_struct_traits.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