| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 void DatabaseOpened(const string16& origin_identifier, | 99 void DatabaseOpened(const string16& origin_identifier, |
| 100 const string16& database_name, | 100 const string16& database_name, |
| 101 const string16& database_details, | 101 const string16& database_details, |
| 102 int64 estimated_size, | 102 int64 estimated_size, |
| 103 int64* database_size); | 103 int64* database_size); |
| 104 void DatabaseModified(const string16& origin_identifier, | 104 void DatabaseModified(const string16& origin_identifier, |
| 105 const string16& database_name); | 105 const string16& database_name); |
| 106 void DatabaseClosed(const string16& origin_identifier, | 106 void DatabaseClosed(const string16& origin_identifier, |
| 107 const string16& database_name); | 107 const string16& database_name); |
| 108 void HandleSqliteError(const string16& origin_identifier, |
| 109 const string16& database_name, |
| 110 int error); |
| 111 |
| 108 void CloseDatabases(const DatabaseConnections& connections); | 112 void CloseDatabases(const DatabaseConnections& connections); |
| 109 | 113 |
| 110 void AddObserver(Observer* observer); | 114 void AddObserver(Observer* observer); |
| 111 void RemoveObserver(Observer* observer); | 115 void RemoveObserver(Observer* observer); |
| 112 | 116 |
| 113 void CloseTrackerDatabaseAndClearCaches(); | 117 void CloseTrackerDatabaseAndClearCaches(); |
| 114 | 118 |
| 115 const FilePath& DatabaseDirectory() const { return db_dir_; } | 119 const FilePath& DatabaseDirectory() const { return db_dir_; } |
| 116 FilePath GetFullDBFilePath(const string16& origin_identifier, | 120 FilePath GetFullDBFilePath(const string16& origin_identifier, |
| 117 const string16& database_name); | 121 const string16& database_name); |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 // this map to assign directory names that do not reveal this information. | 299 // this map to assign directory names that do not reveal this information. |
| 296 OriginDirectoriesMap incognito_origin_directories_; | 300 OriginDirectoriesMap incognito_origin_directories_; |
| 297 int incognito_origin_directories_generator_; | 301 int incognito_origin_directories_generator_; |
| 298 | 302 |
| 299 FRIEND_TEST_ALL_PREFIXES(DatabaseTracker, TestHelper); | 303 FRIEND_TEST_ALL_PREFIXES(DatabaseTracker, TestHelper); |
| 300 }; | 304 }; |
| 301 | 305 |
| 302 } // namespace webkit_database | 306 } // namespace webkit_database |
| 303 | 307 |
| 304 #endif // WEBKIT_DATABASE_DATABASE_TRACKER_H_ | 308 #endif // WEBKIT_DATABASE_DATABASE_TRACKER_H_ |
| OLD | NEW |