| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 } | 217 } |
| 218 void IndexedDBFakeBackingStore::FakeTransaction::Begin() {} | 218 void IndexedDBFakeBackingStore::FakeTransaction::Begin() {} |
| 219 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseOne( | 219 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseOne( |
| 220 scoped_refptr<BlobWriteCallback> callback) { | 220 scoped_refptr<BlobWriteCallback> callback) { |
| 221 callback->Run(IndexedDBBackingStore::BlobWriteResult::SUCCESS_SYNC); | 221 callback->Run(IndexedDBBackingStore::BlobWriteResult::SUCCESS_SYNC); |
| 222 return leveldb::Status::OK(); | 222 return leveldb::Status::OK(); |
| 223 } | 223 } |
| 224 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseTwo() { | 224 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseTwo() { |
| 225 return result_; | 225 return result_; |
| 226 } | 226 } |
| 227 uint64_t IndexedDBFakeBackingStore::FakeTransaction::GetTransactionSize() { |
| 228 return 0; |
| 229 } |
| 227 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {} | 230 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {} |
| 228 | 231 |
| 229 } // namespace content | 232 } // namespace content |
| OLD | NEW |