| 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 #include "content/browser/indexed_db/indexed_db_class_factory.h" | 5 #include "content/browser/indexed_db/indexed_db_class_factory.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "content/browser/indexed_db/indexed_db_transaction.h" | 9 #include "content/browser/indexed_db/indexed_db_transaction.h" |
| 10 #include "content/browser/indexed_db/leveldb/leveldb_iterator_impl.h" | 10 #include "content/browser/indexed_db/leveldb/leveldb_iterator_impl.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 IndexedDBDatabase* IndexedDBClassFactory::CreateIndexedDBDatabase( | 30 IndexedDBDatabase* IndexedDBClassFactory::CreateIndexedDBDatabase( |
| 31 const base::string16& name, | 31 const base::string16& name, |
| 32 IndexedDBBackingStore* backing_store, | 32 IndexedDBBackingStore* backing_store, |
| 33 IndexedDBFactory* factory, | 33 IndexedDBFactory* factory, |
| 34 const IndexedDBDatabase::Identifier& unique_identifier) { | 34 const IndexedDBDatabase::Identifier& unique_identifier) { |
| 35 return new IndexedDBDatabase(name, backing_store, factory, unique_identifier); | 35 return new IndexedDBDatabase(name, backing_store, factory, unique_identifier); |
| 36 } | 36 } |
| 37 | 37 |
| 38 IndexedDBTransaction* IndexedDBClassFactory::CreateIndexedDBTransaction( | 38 IndexedDBTransaction* IndexedDBClassFactory::CreateIndexedDBTransaction( |
| 39 int64_t id, | 39 int64_t id, |
| 40 scoped_refptr<IndexedDBDatabaseCallbacks> callbacks, | 40 base::WeakPtr<IndexedDBConnection> connection, |
| 41 const std::set<int64_t>& scope, | 41 const std::set<int64_t>& scope, |
| 42 blink::WebIDBTransactionMode mode, | 42 blink::WebIDBTransactionMode mode, |
| 43 IndexedDBDatabase* db, | |
| 44 IndexedDBBackingStore::Transaction* backing_store_transaction) { | 43 IndexedDBBackingStore::Transaction* backing_store_transaction) { |
| 45 return new IndexedDBTransaction(id, callbacks, scope, mode, db, | 44 return new IndexedDBTransaction(id, std::move(connection), scope, mode, |
| 46 backing_store_transaction); | 45 backing_store_transaction); |
| 47 } | 46 } |
| 48 | 47 |
| 49 LevelDBTransaction* IndexedDBClassFactory::CreateLevelDBTransaction( | 48 LevelDBTransaction* IndexedDBClassFactory::CreateLevelDBTransaction( |
| 50 LevelDBDatabase* db) { | 49 LevelDBDatabase* db) { |
| 51 return new LevelDBTransaction(db); | 50 return new LevelDBTransaction(db); |
| 52 } | 51 } |
| 53 | 52 |
| 54 content::LevelDBIteratorImpl* IndexedDBClassFactory::CreateIteratorImpl( | 53 content::LevelDBIteratorImpl* IndexedDBClassFactory::CreateIteratorImpl( |
| 55 std::unique_ptr<leveldb::Iterator> iterator) { | 54 std::unique_ptr<leveldb::Iterator> iterator) { |
| 56 return new LevelDBIteratorImpl(std::move(iterator)); | 55 return new LevelDBIteratorImpl(std::move(iterator)); |
| 57 } | 56 } |
| 58 | 57 |
| 59 } // namespace content | 58 } // namespace content |
| OLD | NEW |