| 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 STORAGE_BROWSER_DATABASE_DATABASE_TRACKER_H_ | 5 #ifndef STORAGE_BROWSER_DATABASE_DATABASE_TRACKER_H_ |
| 6 #define STORAGE_BROWSER_DATABASE_DATABASE_TRACKER_H_ | 6 #define STORAGE_BROWSER_DATABASE_DATABASE_TRACKER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 | 274 |
| 275 bool is_initialized_; | 275 bool is_initialized_; |
| 276 const bool is_incognito_; | 276 const bool is_incognito_; |
| 277 bool force_keep_session_state_; | 277 bool force_keep_session_state_; |
| 278 bool shutting_down_; | 278 bool shutting_down_; |
| 279 const base::FilePath profile_path_; | 279 const base::FilePath profile_path_; |
| 280 const base::FilePath db_dir_; | 280 const base::FilePath db_dir_; |
| 281 scoped_ptr<sql::Connection> db_; | 281 scoped_ptr<sql::Connection> db_; |
| 282 scoped_ptr<DatabasesTable> databases_table_; | 282 scoped_ptr<DatabasesTable> databases_table_; |
| 283 scoped_ptr<sql::MetaTable> meta_table_; | 283 scoped_ptr<sql::MetaTable> meta_table_; |
| 284 ObserverList<Observer, true> observers_; | 284 base::ObserverList<Observer, true> observers_; |
| 285 std::map<std::string, CachedOriginInfo> origins_info_map_; | 285 std::map<std::string, CachedOriginInfo> origins_info_map_; |
| 286 DatabaseConnections database_connections_; | 286 DatabaseConnections database_connections_; |
| 287 | 287 |
| 288 // The set of databases that should be deleted but are still opened | 288 // The set of databases that should be deleted but are still opened |
| 289 DatabaseSet dbs_to_be_deleted_; | 289 DatabaseSet dbs_to_be_deleted_; |
| 290 PendingDeletionCallbacks deletion_callbacks_; | 290 PendingDeletionCallbacks deletion_callbacks_; |
| 291 | 291 |
| 292 // Apps and Extensions can have special rights. | 292 // Apps and Extensions can have special rights. |
| 293 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; | 293 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; |
| 294 | 294 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 310 // this map to assign directory names that do not reveal this information. | 310 // this map to assign directory names that do not reveal this information. |
| 311 OriginDirectoriesMap incognito_origin_directories_; | 311 OriginDirectoriesMap incognito_origin_directories_; |
| 312 int incognito_origin_directories_generator_; | 312 int incognito_origin_directories_generator_; |
| 313 | 313 |
| 314 FRIEND_TEST_ALL_PREFIXES(DatabaseTracker, TestHelper); | 314 FRIEND_TEST_ALL_PREFIXES(DatabaseTracker, TestHelper); |
| 315 }; | 315 }; |
| 316 | 316 |
| 317 } // namespace storage | 317 } // namespace storage |
| 318 | 318 |
| 319 #endif // STORAGE_BROWSER_DATABASE_DATABASE_TRACKER_H_ | 319 #endif // STORAGE_BROWSER_DATABASE_DATABASE_TRACKER_H_ |
| OLD | NEW |