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

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

Issue 2511403003: Send IndexedDB observations through IDBDatabaseCallbacks. (Closed)
Patch Set: Remove unnecessary forward declaration. Created 4 years, 1 month 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..5e02de7da51596df7b84c12b5a2a34605737905c 100644
--- a/content/browser/indexed_db/indexed_db_transaction.h
+++ b/content/browser/indexed_db/indexed_db_transaction.h
@@ -29,8 +29,6 @@ namespace content {
class BlobWriteCallbackImpl;
class IndexedDBCursor;
class IndexedDBDatabaseCallbacks;
-class IndexedDBObservation;
-class IndexedDBObserverChanges;
class CONTENT_EXPORT IndexedDBTransaction
: public NON_EXPORTED_BASE(base::RefCounted<IndexedDBTransaction>) {
@@ -74,7 +72,7 @@ class CONTENT_EXPORT IndexedDBTransaction
// Adds observation for the connection.
void AddObservation(int32_t connection_id,
- std::unique_ptr<IndexedDBObservation>);
+ ::indexed_db::mojom::ObservationPtr observation);
// Adds the last observation index to observer_id's list of recorded
// observation indices.
void RecordObserverForLastObservation(int32_t connection_id,
@@ -154,7 +152,7 @@ class CONTENT_EXPORT IndexedDBTransaction
// Observers in pending queue do not listen to changes until activated.
std::vector<std::unique_ptr<IndexedDBObserver>> pending_observers_;
- std::map<int32_t, std::unique_ptr<IndexedDBObserverChanges>>
+ std::map<int32_t, ::indexed_db::mojom::ObserverChangesPtr>
connection_changes_map_;
class TaskQueue {
« no previous file with comments | « content/browser/indexed_db/indexed_db_observer_changes.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