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 #include "content/browser/indexed_db/indexed_db_fake_backing_store.h" | 5 #include "content/browser/indexed_db/indexed_db_fake_backing_store.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "net/url_request/url_request_context_getter.h" | 8 #include "net/url_request/url_request_context_getter.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 return leveldb::Status::OK(); | 67 return leveldb::Status::OK(); |
68 } | 68 } |
69 | 69 |
70 leveldb::Status IndexedDBFakeBackingStore::DeleteObjectStore( | 70 leveldb::Status IndexedDBFakeBackingStore::DeleteObjectStore( |
71 Transaction* transaction, | 71 Transaction* transaction, |
72 int64_t database_id, | 72 int64_t database_id, |
73 int64_t object_store_id) { | 73 int64_t object_store_id) { |
74 return leveldb::Status::OK(); | 74 return leveldb::Status::OK(); |
75 } | 75 } |
76 | 76 |
| 77 leveldb::Status IndexedDBFakeBackingStore::RenameObjectStore( |
| 78 Transaction* transaction, |
| 79 int64_t database_id, |
| 80 int64_t object_store_id, |
| 81 const base::string16& new_name) { |
| 82 return leveldb::Status::OK(); |
| 83 } |
| 84 |
77 leveldb::Status IndexedDBFakeBackingStore::PutRecord( | 85 leveldb::Status IndexedDBFakeBackingStore::PutRecord( |
78 IndexedDBBackingStore::Transaction* transaction, | 86 IndexedDBBackingStore::Transaction* transaction, |
79 int64_t database_id, | 87 int64_t database_id, |
80 int64_t object_store_id, | 88 int64_t object_store_id, |
81 const IndexedDBKey& key, | 89 const IndexedDBKey& key, |
82 IndexedDBValue* value, | 90 IndexedDBValue* value, |
83 std::vector<std::unique_ptr<storage::BlobDataHandle>>* handles, | 91 std::vector<std::unique_ptr<storage::BlobDataHandle>>* handles, |
84 RecordIdentifier* record) { | 92 RecordIdentifier* record) { |
85 return leveldb::Status::OK(); | 93 return leveldb::Status::OK(); |
86 } | 94 } |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 bool is_multi_entry) { | 142 bool is_multi_entry) { |
135 return leveldb::Status::OK(); | 143 return leveldb::Status::OK(); |
136 } | 144 } |
137 | 145 |
138 leveldb::Status IndexedDBFakeBackingStore::DeleteIndex(Transaction*, | 146 leveldb::Status IndexedDBFakeBackingStore::DeleteIndex(Transaction*, |
139 int64_t database_id, | 147 int64_t database_id, |
140 int64_t object_store_id, | 148 int64_t object_store_id, |
141 int64_t index_id) { | 149 int64_t index_id) { |
142 return leveldb::Status::OK(); | 150 return leveldb::Status::OK(); |
143 } | 151 } |
| 152 leveldb::Status IndexedDBFakeBackingStore::RenameIndex( |
| 153 Transaction*, |
| 154 int64_t database_id, |
| 155 int64_t object_store_id, |
| 156 int64_t index_id, |
| 157 const base::string16& new_name) { |
| 158 return leveldb::Status::OK(); |
| 159 } |
144 leveldb::Status IndexedDBFakeBackingStore::PutIndexDataForRecord( | 160 leveldb::Status IndexedDBFakeBackingStore::PutIndexDataForRecord( |
145 Transaction*, | 161 Transaction*, |
146 int64_t database_id, | 162 int64_t database_id, |
147 int64_t object_store_id, | 163 int64_t object_store_id, |
148 int64_t index_id, | 164 int64_t index_id, |
149 const IndexedDBKey&, | 165 const IndexedDBKey&, |
150 const RecordIdentifier&) { | 166 const RecordIdentifier&) { |
151 return leveldb::Status::OK(); | 167 return leveldb::Status::OK(); |
152 } | 168 } |
153 | 169 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 scoped_refptr<BlobWriteCallback> callback) { | 222 scoped_refptr<BlobWriteCallback> callback) { |
207 callback->Run(true); | 223 callback->Run(true); |
208 return leveldb::Status::OK(); | 224 return leveldb::Status::OK(); |
209 } | 225 } |
210 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseTwo() { | 226 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseTwo() { |
211 return result_; | 227 return result_; |
212 } | 228 } |
213 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {} | 229 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {} |
214 | 230 |
215 } // namespace content | 231 } // namespace content |
OLD | NEW |