| 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/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| 11 IndexedDBFakeBackingStore::~IndexedDBFakeBackingStore() {} | 11 IndexedDBFakeBackingStore::~IndexedDBFakeBackingStore() {} |
| 12 | 12 |
| 13 std::vector<string16> IndexedDBFakeBackingStore::GetDatabaseNames() { | 13 std::vector<string16> IndexedDBFakeBackingStore::GetDatabaseNames() { |
| 14 return std::vector<string16>(); | 14 return std::vector<string16>(); |
| 15 } | 15 } |
| 16 bool IndexedDBFakeBackingStore::GetIDBDatabaseMetaData( | 16 bool IndexedDBFakeBackingStore::GetIDBDatabaseMetaData( |
| 17 const string16& name, | 17 const string16& name, |
| 18 IndexedDBDatabaseMetadata*, | 18 IndexedDBDatabaseMetadata*, |
| 19 bool* found) { | 19 bool* found) { |
| 20 return true; | 20 return true; |
| 21 } | 21 } |
| 22 | 22 |
| 23 bool IndexedDBFakeBackingStore::CreateIDBDatabaseMetaData( | 23 bool IndexedDBFakeBackingStore::CreateIDBDatabaseMetaData( |
| 24 const string16& name, | 24 const string16& name, |
| 25 const string16& version, | 25 const string16& version, |
| 26 int64 int_version, | 26 int64 int_version, |
| 27 int64* row_id) { | 27 int64* row_id) { |
| 28 return true; | 28 return true; |
| 29 } | 29 } |
| 30 bool IndexedDBFakeBackingStore::UpdateIDBDatabaseMetaData( | |
| 31 Transaction*, | |
| 32 int64 row_id, | |
| 33 const string16& version) { | |
| 34 return false; | |
| 35 } | |
| 36 bool IndexedDBFakeBackingStore::UpdateIDBDatabaseIntVersion(Transaction*, | 30 bool IndexedDBFakeBackingStore::UpdateIDBDatabaseIntVersion(Transaction*, |
| 37 int64 row_id, | 31 int64 row_id, |
| 38 int64 version) { | 32 int64 version) { |
| 39 return false; | 33 return false; |
| 40 } | 34 } |
| 41 bool IndexedDBFakeBackingStore::DeleteDatabase(const string16& name) { | 35 bool IndexedDBFakeBackingStore::DeleteDatabase(const string16& name) { |
| 42 return true; | 36 return true; |
| 43 } | 37 } |
| 44 | 38 |
| 45 bool IndexedDBFakeBackingStore::CreateObjectStore(Transaction*, | 39 bool IndexedDBFakeBackingStore::CreateObjectStore(Transaction*, |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 IndexedDBBackingStore::Transaction* transaction, | 140 IndexedDBBackingStore::Transaction* transaction, |
| 147 int64 database_id, | 141 int64 database_id, |
| 148 int64 object_store_id, | 142 int64 object_store_id, |
| 149 int64 index_id, | 143 int64 index_id, |
| 150 const IndexedDBKeyRange& key_range, | 144 const IndexedDBKeyRange& key_range, |
| 151 indexed_db::CursorDirection) { | 145 indexed_db::CursorDirection) { |
| 152 return scoped_ptr<IndexedDBBackingStore::Cursor>(); | 146 return scoped_ptr<IndexedDBBackingStore::Cursor>(); |
| 153 } | 147 } |
| 154 | 148 |
| 155 } // namespace content | 149 } // namespace content |
| OLD | NEW |