| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 } | 38 } |
| 39 leveldb::Status IndexedDBFakeBackingStore::GetIDBDatabaseMetaData( | 39 leveldb::Status IndexedDBFakeBackingStore::GetIDBDatabaseMetaData( |
| 40 const base::string16& name, | 40 const base::string16& name, |
| 41 IndexedDBDatabaseMetadata*, | 41 IndexedDBDatabaseMetadata*, |
| 42 bool* found) { | 42 bool* found) { |
| 43 return leveldb::Status::OK(); | 43 return leveldb::Status::OK(); |
| 44 } | 44 } |
| 45 | 45 |
| 46 leveldb::Status IndexedDBFakeBackingStore::CreateIDBDatabaseMetaData( | 46 leveldb::Status IndexedDBFakeBackingStore::CreateIDBDatabaseMetaData( |
| 47 const base::string16& name, | 47 const base::string16& name, |
| 48 int64_t int_version, | 48 int64_t version, |
| 49 int64_t* row_id) { | 49 int64_t* row_id) { |
| 50 return leveldb::Status::OK(); | 50 return leveldb::Status::OK(); |
| 51 } | 51 } |
| 52 bool IndexedDBFakeBackingStore::UpdateIDBDatabaseIntVersion(Transaction*, | 52 bool IndexedDBFakeBackingStore::UpdateIDBDatabaseIntVersion(Transaction*, |
| 53 int64_t row_id, | 53 int64_t row_id, |
| 54 int64_t version) { | 54 int64_t version) { |
| 55 return false; | 55 return false; |
| 56 } | 56 } |
| 57 leveldb::Status IndexedDBFakeBackingStore::DeleteDatabase( | 57 leveldb::Status IndexedDBFakeBackingStore::DeleteDatabase( |
| 58 const base::string16& name) { | 58 const base::string16& name) { |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 scoped_refptr<BlobWriteCallback> callback) { | 208 scoped_refptr<BlobWriteCallback> callback) { |
| 209 callback->Run(true); | 209 callback->Run(true); |
| 210 return leveldb::Status::OK(); | 210 return leveldb::Status::OK(); |
| 211 } | 211 } |
| 212 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseTwo() { | 212 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseTwo() { |
| 213 return result_; | 213 return result_; |
| 214 } | 214 } |
| 215 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {} | 215 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {} |
| 216 | 216 |
| 217 } // namespace content | 217 } // namespace content |
| OLD | NEW |