| 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> |
| 9 |
| 8 #include <set> | 10 #include <set> |
| 9 | 11 |
| 10 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
| 11 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 12 #include "content/browser/indexed_db/indexed_db_backing_store.h" | 14 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
| 13 #include "content/browser/indexed_db/indexed_db_database.h" | 15 #include "content/browser/indexed_db/indexed_db_database.h" |
| 14 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 15 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" | 17 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" |
| 16 | 18 |
| 17 namespace leveldb { | 19 namespace leveldb { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 38 | 40 |
| 39 static void SetIndexedDBClassFactoryGetter(GetterCallback* cb); | 41 static void SetIndexedDBClassFactoryGetter(GetterCallback* cb); |
| 40 | 42 |
| 41 virtual IndexedDBDatabase* CreateIndexedDBDatabase( | 43 virtual IndexedDBDatabase* CreateIndexedDBDatabase( |
| 42 const base::string16& name, | 44 const base::string16& name, |
| 43 IndexedDBBackingStore* backing_store, | 45 IndexedDBBackingStore* backing_store, |
| 44 IndexedDBFactory* factory, | 46 IndexedDBFactory* factory, |
| 45 const IndexedDBDatabase::Identifier& unique_identifier); | 47 const IndexedDBDatabase::Identifier& unique_identifier); |
| 46 | 48 |
| 47 virtual IndexedDBTransaction* CreateIndexedDBTransaction( | 49 virtual IndexedDBTransaction* CreateIndexedDBTransaction( |
| 48 int64 id, | 50 int64_t id, |
| 49 scoped_refptr<IndexedDBDatabaseCallbacks> callbacks, | 51 scoped_refptr<IndexedDBDatabaseCallbacks> callbacks, |
| 50 const std::set<int64>& scope, | 52 const std::set<int64_t>& scope, |
| 51 blink::WebIDBTransactionMode mode, | 53 blink::WebIDBTransactionMode mode, |
| 52 IndexedDBDatabase* db, | 54 IndexedDBDatabase* db, |
| 53 IndexedDBBackingStore::Transaction* backing_store_transaction); | 55 IndexedDBBackingStore::Transaction* backing_store_transaction); |
| 54 | 56 |
| 55 virtual LevelDBIteratorImpl* CreateIteratorImpl( | 57 virtual LevelDBIteratorImpl* CreateIteratorImpl( |
| 56 scoped_ptr<leveldb::Iterator> iterator); | 58 scoped_ptr<leveldb::Iterator> iterator); |
| 57 virtual LevelDBTransaction* CreateLevelDBTransaction(LevelDBDatabase* db); | 59 virtual LevelDBTransaction* CreateLevelDBTransaction(LevelDBDatabase* db); |
| 58 | 60 |
| 59 protected: | 61 protected: |
| 60 IndexedDBClassFactory() {} | 62 IndexedDBClassFactory() {} |
| 61 virtual ~IndexedDBClassFactory() {} | 63 virtual ~IndexedDBClassFactory() {} |
| 62 friend struct base::DefaultLazyInstanceTraits<IndexedDBClassFactory>; | 64 friend struct base::DefaultLazyInstanceTraits<IndexedDBClassFactory>; |
| 63 }; | 65 }; |
| 64 | 66 |
| 65 } // namespace content | 67 } // namespace content |
| 66 | 68 |
| 67 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CLASS_FACTORY_H_ | 69 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CLASS_FACTORY_H_ |
| OLD | NEW |