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

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

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 months 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 virtual std::unique_ptr<LevelDBIteratorImpl> CreateIteratorImpl( 57 virtual std::unique_ptr<LevelDBIteratorImpl> CreateIteratorImpl(
58 std::unique_ptr<leveldb::Iterator> iterator); 58 std::unique_ptr<leveldb::Iterator> iterator);
59 59
60 virtual scoped_refptr<LevelDBTransaction> CreateLevelDBTransaction( 60 virtual scoped_refptr<LevelDBTransaction> CreateLevelDBTransaction(
61 LevelDBDatabase* db); 61 LevelDBDatabase* db);
62 62
63 protected: 63 protected:
64 IndexedDBClassFactory() {} 64 IndexedDBClassFactory() {}
65 virtual ~IndexedDBClassFactory() {} 65 virtual ~IndexedDBClassFactory() {}
66 friend struct base::DefaultLazyInstanceTraits<IndexedDBClassFactory>; 66 friend struct base::LazyInstanceTraitsBase<IndexedDBClassFactory>;
67 }; 67 };
68 68
69 } // namespace content 69 } // namespace content
70 70
71 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CLASS_FACTORY_H_ 71 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CLASS_FACTORY_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.cc ('k') | content/browser/indexed_db/leveldb/leveldb_env.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698