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

Unified Diff: content/browser/indexed_db/indexed_db_backing_store.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_backing_store.cc
diff --git a/content/browser/indexed_db/indexed_db_backing_store.cc b/content/browser/indexed_db/indexed_db_backing_store.cc
index 3ec2ab2f129bb9f052f65512009333bd49deb41e..c1883badc61e6d9b9ec2a9db2ab89ba7c6afcf71 100644
--- a/content/browser/indexed_db/indexed_db_backing_store.cc
+++ b/content/browser/indexed_db/indexed_db_backing_store.cc
@@ -1890,7 +1890,7 @@ leveldb::Status IndexedDBBackingStore::PutRecord(
int64 object_store_id,
const IndexedDBKey& key,
IndexedDBValue* value,
- ScopedVector<storage::BlobDataHandle>* handles,
+ ScopedVector<storage::BlobDataSnapshotHandle>* handles,
RecordIdentifier* record_identifier) {
IDB_TRACE("IndexedDBBackingStore::PutRecord");
if (!KeyPrefix::ValidIds(database_id, object_store_id))
@@ -4188,7 +4188,7 @@ void IndexedDBBackingStore::BlobChangeRecord::SetBlobInfo(
}
void IndexedDBBackingStore::BlobChangeRecord::SetHandles(
- ScopedVector<storage::BlobDataHandle>* handles) {
+ ScopedVector<storage::BlobDataSnapshotHandle>* handles) {
handles_.clear();
if (handles)
handles_.swap(*handles);
@@ -4201,7 +4201,7 @@ IndexedDBBackingStore::BlobChangeRecord::Clone() const {
record->blob_info_ = blob_info_;
for (const auto* handle : handles_)
- record->handles_.push_back(new storage::BlobDataHandle(*handle));
+ record->handles_.push_back(new storage::BlobDataSnapshotHandle(*handle));
return record.Pass();
}
@@ -4210,7 +4210,7 @@ leveldb::Status IndexedDBBackingStore::Transaction::PutBlobInfoIfNeeded(
int64 object_store_id,
const std::string& object_store_data_key,
std::vector<IndexedDBBlobInfo>* blob_info,
- ScopedVector<storage::BlobDataHandle>* handles) {
+ ScopedVector<storage::BlobDataSnapshotHandle>* handles) {
if (!blob_info || blob_info->empty()) {
blob_change_map_.erase(object_store_data_key);
incognito_blob_map_.erase(object_store_data_key);
@@ -4245,7 +4245,7 @@ void IndexedDBBackingStore::Transaction::PutBlobInfo(
int64 object_store_id,
const std::string& object_store_data_key,
std::vector<IndexedDBBlobInfo>* blob_info,
- ScopedVector<storage::BlobDataHandle>* handles) {
+ ScopedVector<storage::BlobDataSnapshotHandle>* handles) {
DCHECK_GT(object_store_data_key.size(), 0UL);
if (database_id_ < 0)
database_id_ = database_id;

Powered by Google App Engine
This is Rietveld 408576698