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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 12 matching lines...) Expand all Loading... |
23 class IndexedDBFakeBackingStore : public IndexedDBBackingStore { | 23 class IndexedDBFakeBackingStore : public IndexedDBBackingStore { |
24 public: | 24 public: |
25 IndexedDBFakeBackingStore(); | 25 IndexedDBFakeBackingStore(); |
26 IndexedDBFakeBackingStore(IndexedDBFactory* factory, | 26 IndexedDBFakeBackingStore(IndexedDBFactory* factory, |
27 base::SequencedTaskRunner* task_runner); | 27 base::SequencedTaskRunner* task_runner); |
28 std::vector<base::string16> GetDatabaseNames(leveldb::Status* s) override; | 28 std::vector<base::string16> GetDatabaseNames(leveldb::Status* s) override; |
29 leveldb::Status GetIDBDatabaseMetaData(const base::string16& name, | 29 leveldb::Status GetIDBDatabaseMetaData(const base::string16& name, |
30 IndexedDBDatabaseMetadata*, | 30 IndexedDBDatabaseMetadata*, |
31 bool* found) override; | 31 bool* found) override; |
32 leveldb::Status CreateIDBDatabaseMetaData(const base::string16& name, | 32 leveldb::Status CreateIDBDatabaseMetaData(const base::string16& name, |
33 int64_t int_version, | 33 int64_t version, |
34 int64_t* row_id) override; | 34 int64_t* row_id) override; |
35 bool UpdateIDBDatabaseIntVersion(Transaction*, | 35 bool UpdateIDBDatabaseIntVersion(Transaction*, |
36 int64_t row_id, | 36 int64_t row_id, |
37 int64_t version) override; | 37 int64_t version) override; |
38 leveldb::Status DeleteDatabase(const base::string16& name) override; | 38 leveldb::Status DeleteDatabase(const base::string16& name) override; |
39 | 39 |
40 leveldb::Status CreateObjectStore(Transaction*, | 40 leveldb::Status CreateObjectStore(Transaction*, |
41 int64_t database_id, | 41 int64_t database_id, |
42 int64_t object_store_id, | 42 int64_t object_store_id, |
43 const base::string16& name, | 43 const base::string16& name, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 friend class base::RefCounted<IndexedDBFakeBackingStore>; | 147 friend class base::RefCounted<IndexedDBFakeBackingStore>; |
148 ~IndexedDBFakeBackingStore() override; | 148 ~IndexedDBFakeBackingStore() override; |
149 | 149 |
150 private: | 150 private: |
151 DISALLOW_COPY_AND_ASSIGN(IndexedDBFakeBackingStore); | 151 DISALLOW_COPY_AND_ASSIGN(IndexedDBFakeBackingStore); |
152 }; | 152 }; |
153 | 153 |
154 } // namespace content | 154 } // namespace content |
155 | 155 |
156 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ | 156 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ |
OLD | NEW |