| 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 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 int64 object_store_id, | 137 int64 object_store_id, |
| 138 const std::string& object_store_data_key, | 138 const std::string& object_store_data_key, |
| 139 std::vector<IndexedDBBlobInfo>*, | 139 std::vector<IndexedDBBlobInfo>*, |
| 140 ScopedVector<storage::BlobDataHandle>* handles); | 140 ScopedVector<storage::BlobDataHandle>* handles); |
| 141 void PutBlobInfo(int64 database_id, | 141 void PutBlobInfo(int64 database_id, |
| 142 int64 object_store_id, | 142 int64 object_store_id, |
| 143 const std::string& object_store_data_key, | 143 const std::string& object_store_data_key, |
| 144 std::vector<IndexedDBBlobInfo>*, | 144 std::vector<IndexedDBBlobInfo>*, |
| 145 ScopedVector<storage::BlobDataHandle>* handles); | 145 ScopedVector<storage::BlobDataHandle>* handles); |
| 146 | 146 |
| 147 LevelDBTransaction* transaction() { return transaction_; } | 147 LevelDBTransaction* transaction() { return transaction_.get(); } |
| 148 | 148 |
| 149 leveldb::Status GetBlobInfoForRecord( | 149 leveldb::Status GetBlobInfoForRecord( |
| 150 int64 database_id, | 150 int64 database_id, |
| 151 const std::string& object_store_data_key, | 151 const std::string& object_store_data_key, |
| 152 IndexedDBValue* value); | 152 IndexedDBValue* value); |
| 153 | 153 |
| 154 // This holds a BlobEntryKey and the encoded IndexedDBBlobInfo vector stored | 154 // This holds a BlobEntryKey and the encoded IndexedDBBlobInfo vector stored |
| 155 // under that key. | 155 // under that key. |
| 156 typedef std::vector<std::pair<BlobEntryKey, std::string> > | 156 typedef std::vector<std::pair<BlobEntryKey, std::string> > |
| 157 BlobEntryKeyValuePairVec; | 157 BlobEntryKeyValuePairVec; |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 // will hold a reference to this backing store. | 578 // will hold a reference to this backing store. |
| 579 IndexedDBActiveBlobRegistry active_blob_registry_; | 579 IndexedDBActiveBlobRegistry active_blob_registry_; |
| 580 base::OneShotTimer<IndexedDBBackingStore> close_timer_; | 580 base::OneShotTimer<IndexedDBBackingStore> close_timer_; |
| 581 | 581 |
| 582 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore); | 582 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore); |
| 583 }; | 583 }; |
| 584 | 584 |
| 585 } // namespace content | 585 } // namespace content |
| 586 | 586 |
| 587 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ | 587 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ |
| OLD | NEW |