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