| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 std::vector<std::unique_ptr<storage::BlobDataHandle>>* handles); | 162 std::vector<std::unique_ptr<storage::BlobDataHandle>>* handles); |
| 163 void PutBlobInfo( | 163 void PutBlobInfo( |
| 164 int64_t database_id, | 164 int64_t database_id, |
| 165 int64_t object_store_id, | 165 int64_t object_store_id, |
| 166 const std::string& object_store_data_key, | 166 const std::string& object_store_data_key, |
| 167 std::vector<IndexedDBBlobInfo>*, | 167 std::vector<IndexedDBBlobInfo>*, |
| 168 std::vector<std::unique_ptr<storage::BlobDataHandle>>* handles); | 168 std::vector<std::unique_ptr<storage::BlobDataHandle>>* handles); |
| 169 | 169 |
| 170 LevelDBTransaction* transaction() { return transaction_.get(); } | 170 LevelDBTransaction* transaction() { return transaction_.get(); } |
| 171 | 171 |
| 172 virtual uint64_t GetTransactionSize(); |
| 173 |
| 172 leveldb::Status GetBlobInfoForRecord( | 174 leveldb::Status GetBlobInfoForRecord( |
| 173 int64_t database_id, | 175 int64_t database_id, |
| 174 const std::string& object_store_data_key, | 176 const std::string& object_store_data_key, |
| 175 IndexedDBValue* value); | 177 IndexedDBValue* value); |
| 176 | 178 |
| 177 // This holds a BlobEntryKey and the encoded IndexedDBBlobInfo vector stored | 179 // This holds a BlobEntryKey and the encoded IndexedDBBlobInfo vector stored |
| 178 // under that key. | 180 // under that key. |
| 179 typedef std::vector<std::pair<BlobEntryKey, std::string> > | 181 typedef std::vector<std::pair<BlobEntryKey, std::string> > |
| 180 BlobEntryKeyValuePairVec; | 182 BlobEntryKeyValuePairVec; |
| 181 | 183 |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 // complete. While > 0, temporary journal entries may exist so out-of-band | 695 // complete. While > 0, temporary journal entries may exist so out-of-band |
| 694 // journal cleaning must be deferred. | 696 // journal cleaning must be deferred. |
| 695 size_t committing_transaction_count_; | 697 size_t committing_transaction_count_; |
| 696 | 698 |
| 697 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore); | 699 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore); |
| 698 }; | 700 }; |
| 699 | 701 |
| 700 } // namespace content | 702 } // namespace content |
| 701 | 703 |
| 702 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ | 704 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ |
| OLD | NEW |