OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CONTEXT_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ |
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 scoped_refptr<IndexedDBFactory> factory_; | 130 scoped_refptr<IndexedDBFactory> factory_; |
131 base::FilePath data_path_; | 131 base::FilePath data_path_; |
132 // If true, nothing (not even session-only data) should be deleted on exit. | 132 // If true, nothing (not even session-only data) should be deleted on exit. |
133 bool force_keep_session_state_; | 133 bool force_keep_session_state_; |
134 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; | 134 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; |
135 scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_; | 135 scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_; |
136 base::SequencedTaskRunner* task_runner_; | 136 base::SequencedTaskRunner* task_runner_; |
137 scoped_ptr<std::set<GURL> > origin_set_; | 137 scoped_ptr<std::set<GURL> > origin_set_; |
138 OriginToSizeMap origin_size_map_; | 138 OriginToSizeMap origin_size_map_; |
139 OriginToSizeMap space_available_map_; | 139 OriginToSizeMap space_available_map_; |
| 140 typedef std::set<IndexedDBConnection*> ConnectionSet; |
| 141 std::map<GURL, ConnectionSet> connections_; |
140 | 142 |
141 DISALLOW_COPY_AND_ASSIGN(IndexedDBContextImpl); | 143 DISALLOW_COPY_AND_ASSIGN(IndexedDBContextImpl); |
142 }; | 144 }; |
143 | 145 |
144 } // namespace content | 146 } // namespace content |
145 | 147 |
146 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ | 148 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ |
OLD | NEW |