| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/indexed_db/indexed_db_backing_store.h" | 5 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 4346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4357 if (chained_blob_writer_.get()) { | 4357 if (chained_blob_writer_.get()) { |
| 4358 chained_blob_writer_->Abort(); | 4358 chained_blob_writer_->Abort(); |
| 4359 chained_blob_writer_ = NULL; | 4359 chained_blob_writer_ = NULL; |
| 4360 } | 4360 } |
| 4361 if (!transaction_) | 4361 if (!transaction_) |
| 4362 return; | 4362 return; |
| 4363 transaction_->Rollback(); | 4363 transaction_->Rollback(); |
| 4364 transaction_ = NULL; | 4364 transaction_ = NULL; |
| 4365 } | 4365 } |
| 4366 | 4366 |
| 4367 uint64_t IndexedDBBackingStore::Transaction::GetTransactionSize() { |
| 4368 DCHECK(transaction_); |
| 4369 return transaction_->GetTransactionSize(); |
| 4370 } |
| 4371 |
| 4367 IndexedDBBackingStore::BlobChangeRecord::BlobChangeRecord( | 4372 IndexedDBBackingStore::BlobChangeRecord::BlobChangeRecord( |
| 4368 const std::string& key, | 4373 const std::string& key, |
| 4369 int64_t object_store_id) | 4374 int64_t object_store_id) |
| 4370 : key_(key), object_store_id_(object_store_id) {} | 4375 : key_(key), object_store_id_(object_store_id) {} |
| 4371 | 4376 |
| 4372 IndexedDBBackingStore::BlobChangeRecord::~BlobChangeRecord() { | 4377 IndexedDBBackingStore::BlobChangeRecord::~BlobChangeRecord() { |
| 4373 } | 4378 } |
| 4374 | 4379 |
| 4375 void IndexedDBBackingStore::BlobChangeRecord::SetBlobInfo( | 4380 void IndexedDBBackingStore::BlobChangeRecord::SetBlobInfo( |
| 4376 std::vector<IndexedDBBlobInfo>* blob_info) { | 4381 std::vector<IndexedDBBlobInfo>* blob_info) { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4487 | 4492 |
| 4488 IndexedDBBackingStore::Transaction::WriteDescriptor::WriteDescriptor( | 4493 IndexedDBBackingStore::Transaction::WriteDescriptor::WriteDescriptor( |
| 4489 const WriteDescriptor& other) = default; | 4494 const WriteDescriptor& other) = default; |
| 4490 IndexedDBBackingStore::Transaction::WriteDescriptor::~WriteDescriptor() = | 4495 IndexedDBBackingStore::Transaction::WriteDescriptor::~WriteDescriptor() = |
| 4491 default; | 4496 default; |
| 4492 IndexedDBBackingStore::Transaction::WriteDescriptor& | 4497 IndexedDBBackingStore::Transaction::WriteDescriptor& |
| 4493 IndexedDBBackingStore::Transaction::WriteDescriptor:: | 4498 IndexedDBBackingStore::Transaction::WriteDescriptor:: |
| 4494 operator=(const WriteDescriptor& other) = default; | 4499 operator=(const WriteDescriptor& other) = default; |
| 4495 | 4500 |
| 4496 } // namespace content | 4501 } // namespace content |
| OLD | NEW |