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> | 7 #include <memory> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "net/url_request/url_request_context_getter.h" |
10 | 11 |
11 namespace content { | 12 namespace content { |
12 | 13 |
13 IndexedDBFakeBackingStore::IndexedDBFakeBackingStore() | 14 IndexedDBFakeBackingStore::IndexedDBFakeBackingStore() |
14 : IndexedDBBackingStore(NULL /* indexed_db_factory */, | 15 : IndexedDBBackingStore(NULL /* indexed_db_factory */, |
15 url::Origin(GURL("http://localhost:81")), | 16 url::Origin(GURL("http://localhost:81")), |
16 base::FilePath(), | 17 base::FilePath(), |
17 NULL /* request_context */, | 18 scoped_refptr<net::URLRequestContextGetter>(), |
18 std::unique_ptr<LevelDBDatabase>(), | 19 std::unique_ptr<LevelDBDatabase>(), |
19 std::unique_ptr<LevelDBComparator>(), | 20 std::unique_ptr<LevelDBComparator>(), |
20 NULL /* task_runner */) {} | 21 NULL /* task_runner */) {} |
21 IndexedDBFakeBackingStore::IndexedDBFakeBackingStore( | 22 IndexedDBFakeBackingStore::IndexedDBFakeBackingStore( |
22 IndexedDBFactory* factory, | 23 IndexedDBFactory* factory, |
23 base::SequencedTaskRunner* task_runner) | 24 base::SequencedTaskRunner* task_runner) |
24 : IndexedDBBackingStore(factory, | 25 : IndexedDBBackingStore(factory, |
25 url::Origin(GURL("http://localhost:81")), | 26 url::Origin(GURL("http://localhost:81")), |
26 base::FilePath(), | 27 base::FilePath(), |
27 NULL /* request_context */, | 28 NULL /* request_context */, |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 scoped_refptr<BlobWriteCallback> callback) { | 208 scoped_refptr<BlobWriteCallback> callback) { |
208 callback->Run(true); | 209 callback->Run(true); |
209 return leveldb::Status::OK(); | 210 return leveldb::Status::OK(); |
210 } | 211 } |
211 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseTwo() { | 212 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseTwo() { |
212 return result_; | 213 return result_; |
213 } | 214 } |
214 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {} | 215 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {} |
215 | 216 |
216 } // namespace content | 217 } // namespace content |
OLD | NEW |