OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ |
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 const base::FilePath& data_directory); | 50 const base::FilePath& data_directory); |
51 | 51 |
52 protected: | 52 protected: |
53 friend class base::RefCounted<IndexedDBFactory>; | 53 friend class base::RefCounted<IndexedDBFactory>; |
54 | 54 |
55 IndexedDBFactory(); | 55 IndexedDBFactory(); |
56 virtual ~IndexedDBFactory(); | 56 virtual ~IndexedDBFactory(); |
57 | 57 |
58 scoped_refptr<IndexedDBBackingStore> OpenBackingStore( | 58 scoped_refptr<IndexedDBBackingStore> OpenBackingStore( |
59 const string16& database_identifier, | 59 const string16& database_identifier, |
60 const base::FilePath& data_directory); | 60 const base::FilePath& data_directory, |
| 61 WebKit::WebIDBCallbacks::DataLoss* data_loss); |
61 | 62 |
62 private: | 63 private: |
63 typedef std::map<string16, scoped_refptr<IndexedDBDatabase> > | 64 typedef std::map<string16, scoped_refptr<IndexedDBDatabase> > |
64 IndexedDBDatabaseMap; | 65 IndexedDBDatabaseMap; |
65 IndexedDBDatabaseMap database_backend_map_; | 66 IndexedDBDatabaseMap database_backend_map_; |
66 | 67 |
67 typedef std::map<string16, base::WeakPtr<IndexedDBBackingStore> > | 68 typedef std::map<string16, base::WeakPtr<IndexedDBBackingStore> > |
68 IndexedDBBackingStoreMap; | 69 IndexedDBBackingStoreMap; |
69 IndexedDBBackingStoreMap backing_store_map_; | 70 IndexedDBBackingStoreMap backing_store_map_; |
70 | 71 |
71 std::set<scoped_refptr<IndexedDBBackingStore> > session_only_backing_stores_; | 72 std::set<scoped_refptr<IndexedDBBackingStore> > session_only_backing_stores_; |
72 }; | 73 }; |
73 | 74 |
74 } // namespace content | 75 } // namespace content |
75 | 76 |
76 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ | 77 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ |
OLD | NEW |