| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CLASS_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CLASS_FACTORY_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CLASS_FACTORY_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CLASS_FACTORY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <set> | 11 #include <set> |
| 12 | 12 |
| 13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "content/browser/indexed_db/indexed_db_backing_store.h" | 15 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
| 16 #include "content/browser/indexed_db/indexed_db_database.h" | 16 #include "content/browser/indexed_db/indexed_db_database.h" |
| 17 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
| 18 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" | 18 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" |
| 19 | 19 |
| 20 namespace leveldb { | 20 namespace leveldb { |
| 21 class Iterator; | 21 class Iterator; |
| 22 } // namespace leveldb | 22 } // namespace leveldb |
| 23 | 23 |
| 24 namespace content { | 24 namespace content { |
| 25 | 25 |
| 26 class IndexedDBBackingStore; | 26 class IndexedDBBackingStore; |
| 27 class IndexedDBConnection; | 27 class IndexedDBConnection; |
| 28 class IndexedDBDatabaseCallbacks; | |
| 29 class IndexedDBFactory; | 28 class IndexedDBFactory; |
| 30 class IndexedDBTransaction; | 29 class IndexedDBTransaction; |
| 31 class LevelDBDatabase; | 30 class LevelDBDatabase; |
| 32 class LevelDBIteratorImpl; | 31 class LevelDBIteratorImpl; |
| 33 class LevelDBTransaction; | 32 class LevelDBTransaction; |
| 34 | 33 |
| 35 // Use this factory to create some IndexedDB objects. Exists solely to | 34 // Use this factory to create some IndexedDB objects. Exists solely to |
| 36 // facilitate tests which sometimes need to inject mock objects into the system. | 35 // facilitate tests which sometimes need to inject mock objects into the system. |
| 37 class CONTENT_EXPORT IndexedDBClassFactory { | 36 class CONTENT_EXPORT IndexedDBClassFactory { |
| 38 public: | 37 public: |
| (...skipping 24 matching lines...) Expand all Loading... |
| 63 | 62 |
| 64 protected: | 63 protected: |
| 65 IndexedDBClassFactory() {} | 64 IndexedDBClassFactory() {} |
| 66 virtual ~IndexedDBClassFactory() {} | 65 virtual ~IndexedDBClassFactory() {} |
| 67 friend struct base::DefaultLazyInstanceTraits<IndexedDBClassFactory>; | 66 friend struct base::DefaultLazyInstanceTraits<IndexedDBClassFactory>; |
| 68 }; | 67 }; |
| 69 | 68 |
| 70 } // namespace content | 69 } // namespace content |
| 71 | 70 |
| 72 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CLASS_FACTORY_H_ | 71 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CLASS_FACTORY_H_ |
| OLD | NEW |