| 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 <memory> | |
| 8 | |
| 9 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 10 | 8 |
| 11 namespace content { | 9 namespace content { |
| 12 | 10 |
| 13 IndexedDBFakeBackingStore::IndexedDBFakeBackingStore() | 11 IndexedDBFakeBackingStore::IndexedDBFakeBackingStore() |
| 14 : IndexedDBBackingStore(NULL /* indexed_db_factory */, | 12 : IndexedDBBackingStore(NULL /* indexed_db_factory */, |
| 15 url::Origin(GURL("http://localhost:81")), | 13 url::Origin(GURL("http://localhost:81")), |
| 16 base::FilePath(), | 14 base::FilePath(), |
| 17 NULL /* request_context */, | 15 NULL /* request_context */, |
| 18 std::unique_ptr<LevelDBDatabase>(), | 16 std::unique_ptr<LevelDBDatabase>(), |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 int64_t object_store_id) { | 72 int64_t object_store_id) { |
| 75 return leveldb::Status::OK(); | 73 return leveldb::Status::OK(); |
| 76 } | 74 } |
| 77 | 75 |
| 78 leveldb::Status IndexedDBFakeBackingStore::PutRecord( | 76 leveldb::Status IndexedDBFakeBackingStore::PutRecord( |
| 79 IndexedDBBackingStore::Transaction* transaction, | 77 IndexedDBBackingStore::Transaction* transaction, |
| 80 int64_t database_id, | 78 int64_t database_id, |
| 81 int64_t object_store_id, | 79 int64_t object_store_id, |
| 82 const IndexedDBKey& key, | 80 const IndexedDBKey& key, |
| 83 IndexedDBValue* value, | 81 IndexedDBValue* value, |
| 84 ScopedVector<storage::BlobDataHandle>* handles, | 82 std::vector<std::unique_ptr<storage::BlobDataHandle>>* handles, |
| 85 RecordIdentifier* record) { | 83 RecordIdentifier* record) { |
| 86 return leveldb::Status::OK(); | 84 return leveldb::Status::OK(); |
| 87 } | 85 } |
| 88 | 86 |
| 89 leveldb::Status IndexedDBFakeBackingStore::ClearObjectStore( | 87 leveldb::Status IndexedDBFakeBackingStore::ClearObjectStore( |
| 90 Transaction*, | 88 Transaction*, |
| 91 int64_t database_id, | 89 int64_t database_id, |
| 92 int64_t object_store_id) { | 90 int64_t object_store_id) { |
| 93 return leveldb::Status::OK(); | 91 return leveldb::Status::OK(); |
| 94 } | 92 } |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 scoped_refptr<BlobWriteCallback> callback) { | 205 scoped_refptr<BlobWriteCallback> callback) { |
| 208 callback->Run(true); | 206 callback->Run(true); |
| 209 return leveldb::Status::OK(); | 207 return leveldb::Status::OK(); |
| 210 } | 208 } |
| 211 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseTwo() { | 209 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseTwo() { |
| 212 return result_; | 210 return result_; |
| 213 } | 211 } |
| 214 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {} | 212 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {} |
| 215 | 213 |
| 216 } // namespace content | 214 } // namespace content |
| OLD | NEW |