Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(696)

Side by Side Diff: content/browser/indexed_db/indexed_db_class_factory.h

Issue 2472213003: [IndexedDB] Refactoring to remove ref ptrs and host transaction ids. (Closed)
Patch Set: updated unittests Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
(...skipping 30 matching lines...) Expand all
41 static IndexedDBClassFactory* Get(); 41 static IndexedDBClassFactory* Get();
42 42
43 static void SetIndexedDBClassFactoryGetter(GetterCallback* cb); 43 static void SetIndexedDBClassFactoryGetter(GetterCallback* cb);
44 44
45 virtual scoped_refptr<IndexedDBDatabase> CreateIndexedDBDatabase( 45 virtual scoped_refptr<IndexedDBDatabase> CreateIndexedDBDatabase(
46 const base::string16& name, 46 const base::string16& name,
47 IndexedDBBackingStore* backing_store, 47 IndexedDBBackingStore* backing_store,
48 IndexedDBFactory* factory, 48 IndexedDBFactory* factory,
49 const IndexedDBDatabase::Identifier& unique_identifier); 49 const IndexedDBDatabase::Identifier& unique_identifier);
50 50
51 virtual IndexedDBTransaction* CreateIndexedDBTransaction(
52 int64_t id,
53 base::WeakPtr<IndexedDBConnection> connection,
54 const std::set<int64_t>& scope,
55 blink::WebIDBTransactionMode mode,
56 IndexedDBBackingStore::Transaction* backing_store_transaction);
57
58 virtual std::unique_ptr<LevelDBIteratorImpl> CreateIteratorImpl( 51 virtual std::unique_ptr<LevelDBIteratorImpl> CreateIteratorImpl(
59 std::unique_ptr<leveldb::Iterator> iterator); 52 std::unique_ptr<leveldb::Iterator> iterator);
60 53
61 virtual scoped_refptr<LevelDBTransaction> CreateLevelDBTransaction( 54 virtual scoped_refptr<LevelDBTransaction> CreateLevelDBTransaction(
62 LevelDBDatabase* db); 55 LevelDBDatabase* db);
63 56
64 protected: 57 protected:
65 IndexedDBClassFactory() {} 58 IndexedDBClassFactory() {}
66 virtual ~IndexedDBClassFactory() {} 59 virtual ~IndexedDBClassFactory() {}
67 friend struct base::DefaultLazyInstanceTraits<IndexedDBClassFactory>; 60 friend struct base::DefaultLazyInstanceTraits<IndexedDBClassFactory>;
68 }; 61 };
69 62
70 } // namespace content 63 } // namespace content
71 64
72 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CLASS_FACTORY_H_ 65 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CLASS_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698