Chromium Code Reviews| 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 IndexedDBConnection* connection, | |
|
dmurph
2016/06/22 01:09:48
base::WeakPtr<IndexedDBConnection>
palakj1
2016/06/23 20:56:29
Done
| |
| 40 scoped_refptr<IndexedDBDatabaseCallbacks> callbacks, | 41 scoped_refptr<IndexedDBDatabaseCallbacks> callbacks, |
| 41 const std::set<int64_t>& scope, | 42 const std::set<int64_t>& scope, |
| 42 blink::WebIDBTransactionMode mode, | 43 blink::WebIDBTransactionMode mode, |
| 43 IndexedDBDatabase* db, | 44 IndexedDBDatabase* db, |
| 44 IndexedDBBackingStore::Transaction* backing_store_transaction) { | 45 IndexedDBBackingStore::Transaction* backing_store_transaction) { |
| 45 return new IndexedDBTransaction(id, callbacks, scope, mode, db, | 46 return new IndexedDBTransaction(id, connection, callbacks, scope, mode, db, |
|
dmurph
2016/06/22 01:09:48
std::move(connection)
palakj1
2016/06/23 20:56:29
Done
| |
| 46 backing_store_transaction); | 47 backing_store_transaction); |
| 47 } | 48 } |
| 48 | 49 |
| 49 LevelDBTransaction* IndexedDBClassFactory::CreateLevelDBTransaction( | 50 LevelDBTransaction* IndexedDBClassFactory::CreateLevelDBTransaction( |
| 50 LevelDBDatabase* db) { | 51 LevelDBDatabase* db) { |
| 51 return new LevelDBTransaction(db); | 52 return new LevelDBTransaction(db); |
| 52 } | 53 } |
| 53 | 54 |
| 54 content::LevelDBIteratorImpl* IndexedDBClassFactory::CreateIteratorImpl( | 55 content::LevelDBIteratorImpl* IndexedDBClassFactory::CreateIteratorImpl( |
| 55 std::unique_ptr<leveldb::Iterator> iterator) { | 56 std::unique_ptr<leveldb::Iterator> iterator) { |
| 56 return new LevelDBIteratorImpl(std::move(iterator)); | 57 return new LevelDBIteratorImpl(std::move(iterator)); |
| 57 } | 58 } |
| 58 | 59 |
| 59 } // namespace content | 60 } // namespace content |
| OLD | NEW |