| 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 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "content/browser/indexed_db/indexed_db_backing_store.h" | 10 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 int64 version) OVERRIDE; | 37 int64 version) OVERRIDE; |
| 38 virtual leveldb::Status DeleteDatabase(const base::string16& name) OVERRIDE; | 38 virtual leveldb::Status DeleteDatabase(const base::string16& name) OVERRIDE; |
| 39 | 39 |
| 40 virtual leveldb::Status CreateObjectStore(Transaction*, | 40 virtual leveldb::Status CreateObjectStore(Transaction*, |
| 41 int64 database_id, | 41 int64 database_id, |
| 42 int64 object_store_id, | 42 int64 object_store_id, |
| 43 const base::string16& name, | 43 const base::string16& name, |
| 44 const IndexedDBKeyPath&, | 44 const IndexedDBKeyPath&, |
| 45 bool auto_increment) OVERRIDE; | 45 bool auto_increment) OVERRIDE; |
| 46 | 46 |
| 47 virtual leveldb::Status PutRecord( |
| 48 IndexedDBBackingStore::Transaction* transaction, |
| 49 int64 database_id, |
| 50 int64 object_store_id, |
| 51 const IndexedDBKey& key, |
| 52 IndexedDBValue& value, |
| 53 ScopedVector<webkit_blob::BlobDataHandle>* handles, |
| 54 RecordIdentifier* record) OVERRIDE; |
| 55 |
| 47 virtual leveldb::Status ClearObjectStore(Transaction*, | 56 virtual leveldb::Status ClearObjectStore(Transaction*, |
| 48 int64 database_id, | 57 int64 database_id, |
| 49 int64 object_store_id) OVERRIDE; | 58 int64 object_store_id) OVERRIDE; |
| 50 virtual leveldb::Status DeleteRecord(Transaction*, | 59 virtual leveldb::Status DeleteRecord(Transaction*, |
| 51 int64 database_id, | 60 int64 database_id, |
| 52 int64 object_store_id, | 61 int64 object_store_id, |
| 53 const RecordIdentifier&) OVERRIDE; | 62 const RecordIdentifier&) OVERRIDE; |
| 54 virtual leveldb::Status GetKeyGeneratorCurrentNumber(Transaction*, | 63 virtual leveldb::Status GetKeyGeneratorCurrentNumber(Transaction*, |
| 55 int64 database_id, | 64 int64 database_id, |
| 56 int64 object_store_id, | 65 int64 object_store_id, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 }; | 142 }; |
| 134 | 143 |
| 135 protected: | 144 protected: |
| 136 friend class base::RefCounted<IndexedDBFakeBackingStore>; | 145 friend class base::RefCounted<IndexedDBFakeBackingStore>; |
| 137 virtual ~IndexedDBFakeBackingStore(); | 146 virtual ~IndexedDBFakeBackingStore(); |
| 138 }; | 147 }; |
| 139 | 148 |
| 140 } // namespace content | 149 } // namespace content |
| 141 | 150 |
| 142 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ | 151 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ |
| OLD | NEW |