| 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" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class TaskRunner; | 13 class SequencedTaskRunner; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 class IndexedDBFactory; | 18 class IndexedDBFactory; |
| 19 | 19 |
| 20 class IndexedDBFakeBackingStore : public IndexedDBBackingStore { | 20 class IndexedDBFakeBackingStore : public IndexedDBBackingStore { |
| 21 public: | 21 public: |
| 22 IndexedDBFakeBackingStore(); | 22 IndexedDBFakeBackingStore(); |
| 23 IndexedDBFakeBackingStore(IndexedDBFactory* factory, | 23 IndexedDBFakeBackingStore(IndexedDBFactory* factory, |
| 24 base::TaskRunner* task_runner); | 24 base::SequencedTaskRunner* task_runner); |
| 25 virtual std::vector<base::string16> GetDatabaseNames(leveldb::Status* s) | 25 virtual std::vector<base::string16> GetDatabaseNames(leveldb::Status* s) |
| 26 OVERRIDE; | 26 OVERRIDE; |
| 27 virtual leveldb::Status GetIDBDatabaseMetaData(const base::string16& name, | 27 virtual leveldb::Status GetIDBDatabaseMetaData(const base::string16& name, |
| 28 IndexedDBDatabaseMetadata*, | 28 IndexedDBDatabaseMetadata*, |
| 29 bool* found) OVERRIDE; | 29 bool* found) OVERRIDE; |
| 30 virtual leveldb::Status CreateIDBDatabaseMetaData( | 30 virtual leveldb::Status CreateIDBDatabaseMetaData( |
| 31 const base::string16& name, | 31 const base::string16& name, |
| 32 const base::string16& version, | 32 const base::string16& version, |
| 33 int64 int_version, | 33 int64 int_version, |
| 34 int64* row_id) OVERRIDE; | 34 int64* row_id) OVERRIDE; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 friend class base::RefCounted<IndexedDBFakeBackingStore>; | 152 friend class base::RefCounted<IndexedDBFakeBackingStore>; |
| 153 virtual ~IndexedDBFakeBackingStore(); | 153 virtual ~IndexedDBFakeBackingStore(); |
| 154 | 154 |
| 155 private: | 155 private: |
| 156 DISALLOW_COPY_AND_ASSIGN(IndexedDBFakeBackingStore); | 156 DISALLOW_COPY_AND_ASSIGN(IndexedDBFakeBackingStore); |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 } // namespace content | 159 } // namespace content |
| 160 | 160 |
| 161 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ | 161 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ |
| OLD | NEW |