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 <memory> |
(...skipping 30 matching lines...) Expand all Loading... |
41 leveldb::Status CreateObjectStore(Transaction*, | 41 leveldb::Status CreateObjectStore(Transaction*, |
42 int64_t database_id, | 42 int64_t database_id, |
43 int64_t object_store_id, | 43 int64_t object_store_id, |
44 const base::string16& name, | 44 const base::string16& name, |
45 const IndexedDBKeyPath&, | 45 const IndexedDBKeyPath&, |
46 bool auto_increment) override; | 46 bool auto_increment) override; |
47 | 47 |
48 leveldb::Status DeleteObjectStore(Transaction* transaction, | 48 leveldb::Status DeleteObjectStore(Transaction* transaction, |
49 int64_t database_id, | 49 int64_t database_id, |
50 int64_t object_store_id) override; | 50 int64_t object_store_id) override; |
| 51 leveldb::Status RenameObjectStore(Transaction* transaction, |
| 52 int64_t database_id, |
| 53 int64_t object_store_id, |
| 54 const base::string16& name) override; |
51 | 55 |
52 leveldb::Status PutRecord( | 56 leveldb::Status PutRecord( |
53 IndexedDBBackingStore::Transaction* transaction, | 57 IndexedDBBackingStore::Transaction* transaction, |
54 int64_t database_id, | 58 int64_t database_id, |
55 int64_t object_store_id, | 59 int64_t object_store_id, |
56 const IndexedDBKey& key, | 60 const IndexedDBKey& key, |
57 IndexedDBValue* value, | 61 IndexedDBValue* value, |
58 std::vector<std::unique_ptr<storage::BlobDataHandle>>* handles, | 62 std::vector<std::unique_ptr<storage::BlobDataHandle>>* handles, |
59 RecordIdentifier* record) override; | 63 RecordIdentifier* record) override; |
60 | 64 |
(...skipping 28 matching lines...) Expand all Loading... |
89 int64_t object_store_id, | 93 int64_t object_store_id, |
90 int64_t index_id, | 94 int64_t index_id, |
91 const base::string16& name, | 95 const base::string16& name, |
92 const IndexedDBKeyPath&, | 96 const IndexedDBKeyPath&, |
93 bool is_unique, | 97 bool is_unique, |
94 bool is_multi_entry) override; | 98 bool is_multi_entry) override; |
95 leveldb::Status DeleteIndex(Transaction*, | 99 leveldb::Status DeleteIndex(Transaction*, |
96 int64_t database_id, | 100 int64_t database_id, |
97 int64_t object_store_id, | 101 int64_t object_store_id, |
98 int64_t index_id) override; | 102 int64_t index_id) override; |
| 103 leveldb::Status RenameIndex(Transaction*, |
| 104 int64_t database_id, |
| 105 int64_t object_store_id, |
| 106 int64_t index_id, |
| 107 const base::string16& new_name) override; |
99 leveldb::Status PutIndexDataForRecord(Transaction*, | 108 leveldb::Status PutIndexDataForRecord(Transaction*, |
100 int64_t database_id, | 109 int64_t database_id, |
101 int64_t object_store_id, | 110 int64_t object_store_id, |
102 int64_t index_id, | 111 int64_t index_id, |
103 const IndexedDBKey&, | 112 const IndexedDBKey&, |
104 const RecordIdentifier&) override; | 113 const RecordIdentifier&) override; |
105 void ReportBlobUnused(int64_t database_id, int64_t blob_key) override; | 114 void ReportBlobUnused(int64_t database_id, int64_t blob_key) override; |
106 std::unique_ptr<Cursor> OpenObjectStoreKeyCursor( | 115 std::unique_ptr<Cursor> OpenObjectStoreKeyCursor( |
107 Transaction* transaction, | 116 Transaction* transaction, |
108 int64_t database_id, | 117 int64_t database_id, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 friend class base::RefCounted<IndexedDBFakeBackingStore>; | 159 friend class base::RefCounted<IndexedDBFakeBackingStore>; |
151 ~IndexedDBFakeBackingStore() override; | 160 ~IndexedDBFakeBackingStore() override; |
152 | 161 |
153 private: | 162 private: |
154 DISALLOW_COPY_AND_ASSIGN(IndexedDBFakeBackingStore); | 163 DISALLOW_COPY_AND_ASSIGN(IndexedDBFakeBackingStore); |
155 }; | 164 }; |
156 | 165 |
157 } // namespace content | 166 } // namespace content |
158 | 167 |
159 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ | 168 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ |
OLD | NEW |