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

Unified Diff: content/browser/indexed_db/indexed_db_database.cc

Issue 810403004: [Storage] Blob Storage Refactoring pt 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: memory leak fixed Created 5 years, 11 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_database.cc
diff --git a/content/browser/indexed_db/indexed_db_database.cc b/content/browser/indexed_db/indexed_db_database.cc
index 97dc1d7ca07dd0610606f0c05d1923344d154c9e..003f288006f376069ce85709465557cfb99e1bbb 100644
--- a/content/browser/indexed_db/indexed_db_database.cc
+++ b/content/browser/indexed_db/indexed_db_database.cc
@@ -718,7 +718,7 @@ struct IndexedDBDatabase::PutOperationParams {
PutOperationParams() {}
int64 object_store_id;
IndexedDBValue value;
- ScopedVector<storage::BlobDataHandle> handles;
+ ScopedVector<storage::BlobDataSnapshotHandle> handles;
scoped_ptr<IndexedDBKey> key;
blink::WebIDBPutMode put_mode;
scoped_refptr<IndexedDBCallbacks> callbacks;
@@ -728,14 +728,15 @@ struct IndexedDBDatabase::PutOperationParams {
DISALLOW_COPY_AND_ASSIGN(PutOperationParams);
};
-void IndexedDBDatabase::Put(int64 transaction_id,
- int64 object_store_id,
- IndexedDBValue* value,
- ScopedVector<storage::BlobDataHandle>* handles,
- scoped_ptr<IndexedDBKey> key,
- blink::WebIDBPutMode put_mode,
- scoped_refptr<IndexedDBCallbacks> callbacks,
- const std::vector<IndexKeys>& index_keys) {
+void IndexedDBDatabase::Put(
+ int64 transaction_id,
+ int64 object_store_id,
+ IndexedDBValue* value,
+ ScopedVector<storage::BlobDataSnapshotHandle>* handles,
+ scoped_ptr<IndexedDBKey> key,
+ blink::WebIDBPutMode put_mode,
+ scoped_refptr<IndexedDBCallbacks> callbacks,
+ const std::vector<IndexKeys>& index_keys) {
IDB_TRACE1("IndexedDBDatabase::Put", "txn.id", transaction_id);
IndexedDBTransaction* transaction = GetTransaction(transaction_id);
if (!transaction)

Powered by Google App Engine
This is Rietveld 408576698