Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_DATABASE_DATABASE_TRACKER_H_ | 5 #ifndef WEBKIT_DATABASE_DATABASE_TRACKER_H_ |
| 6 #define WEBKIT_DATABASE_DATABASE_TRACKER_H_ | 6 #define WEBKIT_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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 84 const string16& database_name, | 84 const string16& database_name, |
| 85 int64 database_size) = 0; | 85 int64 database_size) = 0; |
| 86 virtual void OnDatabaseScheduledForDeletion( | 86 virtual void OnDatabaseScheduledForDeletion( |
| 87 const string16& origin_identifier, | 87 const string16& origin_identifier, |
| 88 const string16& database_name) = 0; | 88 const string16& database_name) = 0; |
| 89 virtual ~Observer() {} | 89 virtual ~Observer() {} |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 DatabaseTracker(const FilePath& profile_path, | 92 DatabaseTracker(const FilePath& profile_path, |
| 93 bool is_incognito, | 93 bool is_incognito, |
| 94 bool clear_local_state_on_exit, | |
|
Avi (use Gerrit)
2012/02/27 19:27:17
?
| |
| 95 quota::SpecialStoragePolicy* special_storage_policy, | 94 quota::SpecialStoragePolicy* special_storage_policy, |
| 96 quota::QuotaManagerProxy* quota_manager_proxy, | 95 quota::QuotaManagerProxy* quota_manager_proxy, |
| 97 base::MessageLoopProxy* db_tracker_thread); | 96 base::MessageLoopProxy* db_tracker_thread); |
| 98 | 97 |
| 99 void DatabaseOpened(const string16& origin_identifier, | 98 void DatabaseOpened(const string16& origin_identifier, |
| 100 const string16& database_name, | 99 const string16& database_name, |
| 101 const string16& database_details, | 100 const string16& database_details, |
| 102 int64 estimated_size, | 101 int64 estimated_size, |
| 103 int64* database_size); | 102 int64* database_size); |
| 104 void DatabaseModified(const string16& origin_identifier, | 103 void DatabaseModified(const string16& origin_identifier, |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 299 // this map to assign directory names that do not reveal this information. | 298 // this map to assign directory names that do not reveal this information. |
| 300 OriginDirectoriesMap incognito_origin_directories_; | 299 OriginDirectoriesMap incognito_origin_directories_; |
| 301 int incognito_origin_directories_generator_; | 300 int incognito_origin_directories_generator_; |
| 302 | 301 |
| 303 FRIEND_TEST_ALL_PREFIXES(DatabaseTracker, TestHelper); | 302 FRIEND_TEST_ALL_PREFIXES(DatabaseTracker, TestHelper); |
| 304 }; | 303 }; |
| 305 | 304 |
| 306 } // namespace webkit_database | 305 } // namespace webkit_database |
| 307 | 306 |
| 308 #endif // WEBKIT_DATABASE_DATABASE_TRACKER_H_ | 307 #endif // WEBKIT_DATABASE_DATABASE_TRACKER_H_ |
| OLD | NEW |