| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_FAKE_BACKING_STORE_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> |
| 10 #include <vector> | 11 #include <vector> |
| 11 | 12 |
| 12 #include "base/macros.h" | 13 #include "base/macros.h" |
| 13 #include "content/browser/indexed_db/indexed_db_backing_store.h" | 14 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
| 14 | 15 |
| 15 namespace base { | 16 namespace base { |
| 16 class SequencedTaskRunner; | 17 class SequencedTaskRunner; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace content { | 20 namespace content { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 41 int64_t database_id, | 42 int64_t database_id, |
| 42 int64_t object_store_id, | 43 int64_t object_store_id, |
| 43 const base::string16& name, | 44 const base::string16& name, |
| 44 const IndexedDBKeyPath&, | 45 const IndexedDBKeyPath&, |
| 45 bool auto_increment) override; | 46 bool auto_increment) override; |
| 46 | 47 |
| 47 leveldb::Status DeleteObjectStore(Transaction* transaction, | 48 leveldb::Status DeleteObjectStore(Transaction* transaction, |
| 48 int64_t database_id, | 49 int64_t database_id, |
| 49 int64_t object_store_id) override; | 50 int64_t object_store_id) override; |
| 50 | 51 |
| 51 leveldb::Status PutRecord(IndexedDBBackingStore::Transaction* transaction, | 52 leveldb::Status PutRecord( |
| 52 int64_t database_id, | 53 IndexedDBBackingStore::Transaction* transaction, |
| 53 int64_t object_store_id, | 54 int64_t database_id, |
| 54 const IndexedDBKey& key, | 55 int64_t object_store_id, |
| 55 IndexedDBValue* value, | 56 const IndexedDBKey& key, |
| 56 ScopedVector<storage::BlobDataHandle>* handles, | 57 IndexedDBValue* value, |
| 57 RecordIdentifier* record) override; | 58 std::vector<std::unique_ptr<storage::BlobDataHandle>>* handles, |
| 59 RecordIdentifier* record) override; |
| 58 | 60 |
| 59 leveldb::Status ClearObjectStore(Transaction*, | 61 leveldb::Status ClearObjectStore(Transaction*, |
| 60 int64_t database_id, | 62 int64_t database_id, |
| 61 int64_t object_store_id) override; | 63 int64_t object_store_id) override; |
| 62 leveldb::Status DeleteRecord(Transaction*, | 64 leveldb::Status DeleteRecord(Transaction*, |
| 63 int64_t database_id, | 65 int64_t database_id, |
| 64 int64_t object_store_id, | 66 int64_t object_store_id, |
| 65 const RecordIdentifier&) override; | 67 const RecordIdentifier&) override; |
| 66 leveldb::Status GetKeyGeneratorCurrentNumber( | 68 leveldb::Status GetKeyGeneratorCurrentNumber( |
| 67 Transaction*, | 69 Transaction*, |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 friend class base::RefCounted<IndexedDBFakeBackingStore>; | 150 friend class base::RefCounted<IndexedDBFakeBackingStore>; |
| 149 ~IndexedDBFakeBackingStore() override; | 151 ~IndexedDBFakeBackingStore() override; |
| 150 | 152 |
| 151 private: | 153 private: |
| 152 DISALLOW_COPY_AND_ASSIGN(IndexedDBFakeBackingStore); | 154 DISALLOW_COPY_AND_ASSIGN(IndexedDBFakeBackingStore); |
| 153 }; | 155 }; |
| 154 | 156 |
| 155 } // namespace content | 157 } // namespace content |
| 156 | 158 |
| 157 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ | 159 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ |
| OLD | NEW |