| 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 content { | 12 namespace content { |
| 13 | 13 |
| 14 class IndexedDBFakeBackingStore : public IndexedDBBackingStore { | 14 class IndexedDBFakeBackingStore : public IndexedDBBackingStore { |
| 15 public: | 15 public: |
| 16 IndexedDBFakeBackingStore() | 16 IndexedDBFakeBackingStore() |
| 17 : IndexedDBBackingStore(GURL("http://localhost:81"), | 17 : IndexedDBBackingStore(GURL("http://localhost:81"), |
| 18 scoped_ptr<LevelDBDatabase>(), | 18 scoped_ptr<LevelDBDatabase>(), |
| 19 scoped_ptr<LevelDBComparator>()) {} | 19 scoped_ptr<LevelDBComparator>()) {} |
| 20 virtual std::vector<string16> GetDatabaseNames() OVERRIDE; | 20 virtual std::vector<string16> GetDatabaseNames() OVERRIDE; |
| 21 virtual bool GetIDBDatabaseMetaData(const string16& name, | 21 virtual bool GetIDBDatabaseMetaData(const string16& name, |
| 22 IndexedDBDatabaseMetadata*, | 22 IndexedDBDatabaseMetadata*, |
| 23 bool* found) OVERRIDE; | 23 bool* found) OVERRIDE; |
| 24 virtual bool CreateIDBDatabaseMetaData(const string16& name, | 24 virtual bool CreateIDBDatabaseMetaData(const string16& name, |
| 25 const string16& version, | 25 const string16& version, |
| 26 int64 int_version, | 26 int64 int_version, |
| 27 int64* row_id) OVERRIDE; | 27 int64* row_id) OVERRIDE; |
| 28 virtual bool UpdateIDBDatabaseMetaData(Transaction*, | |
| 29 int64 row_id, | |
| 30 const string16& version) OVERRIDE; | |
| 31 virtual bool UpdateIDBDatabaseIntVersion(Transaction*, | 28 virtual bool UpdateIDBDatabaseIntVersion(Transaction*, |
| 32 int64 row_id, | 29 int64 row_id, |
| 33 int64 version) OVERRIDE; | 30 int64 version) OVERRIDE; |
| 34 virtual bool DeleteDatabase(const string16& name) OVERRIDE; | 31 virtual bool DeleteDatabase(const string16& name) OVERRIDE; |
| 35 | 32 |
| 36 virtual bool CreateObjectStore(Transaction*, | 33 virtual bool CreateObjectStore(Transaction*, |
| 37 int64 database_id, | 34 int64 database_id, |
| 38 int64 object_store_id, | 35 int64 object_store_id, |
| 39 const string16& name, | 36 const string16& name, |
| 40 const IndexedDBKeyPath&, | 37 const IndexedDBKeyPath&, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 OVERRIDE; | 108 OVERRIDE; |
| 112 | 109 |
| 113 protected: | 110 protected: |
| 114 friend class base::RefCounted<IndexedDBFakeBackingStore>; | 111 friend class base::RefCounted<IndexedDBFakeBackingStore>; |
| 115 virtual ~IndexedDBFakeBackingStore(); | 112 virtual ~IndexedDBFakeBackingStore(); |
| 116 }; | 113 }; |
| 117 | 114 |
| 118 } // namespace content | 115 } // namespace content |
| 119 | 116 |
| 120 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ | 117 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ |
| OLD | NEW |