| 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(string16(), | 17 : IndexedDBBackingStore(std::string(), |
| 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; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 OVERRIDE; | 111 OVERRIDE; |
| 112 | 112 |
| 113 protected: | 113 protected: |
| 114 friend class base::RefCounted<IndexedDBFakeBackingStore>; | 114 friend class base::RefCounted<IndexedDBFakeBackingStore>; |
| 115 virtual ~IndexedDBFakeBackingStore(); | 115 virtual ~IndexedDBFakeBackingStore(); |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 } // namespace content | 118 } // namespace content |
| 119 | 119 |
| 120 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ | 120 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ |
| OLD | NEW |