Chromium Code Reviews| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 211 return std::unique_ptr<IndexedDBBackingStore::Cursor>(); | 211 return std::unique_ptr<IndexedDBBackingStore::Cursor>(); |
| 212 } | 212 } |
| 213 | 213 |
| 214 IndexedDBFakeBackingStore::FakeTransaction::FakeTransaction( | 214 IndexedDBFakeBackingStore::FakeTransaction::FakeTransaction( |
| 215 leveldb::Status result) | 215 leveldb::Status result) |
| 216 : IndexedDBBackingStore::Transaction(NULL), result_(result) { | 216 : IndexedDBBackingStore::Transaction(NULL), result_(result) { |
| 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(true); | 221 callback->Run(true, true); |
|
jsbell
2016/11/30 21:30:14
comments (or enum)
dmurph
2016/11/30 23:13:07
Done.
| |
| 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 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {} | 227 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {} |
| 228 | 228 |
| 229 } // namespace content | 229 } // namespace content |
| OLD | NEW |