| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_DATABASES_TABLE_H_ | 5 #ifndef WEBKIT_DATABASE_DATABASES_TABLE_H_ |
| 6 #define WEBKIT_DATABASE_DATABASES_TABLE_H_ | 6 #define WEBKIT_DATABASE_DATABASES_TABLE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 bool Init(); | 31 bool Init(); |
| 32 int64 GetDatabaseID(const string16& origin_identifier, | 32 int64 GetDatabaseID(const string16& origin_identifier, |
| 33 const string16& database_name); | 33 const string16& database_name); |
| 34 bool GetDatabaseDetails(const string16& origin_identifier, | 34 bool GetDatabaseDetails(const string16& origin_identifier, |
| 35 const string16& database_name, | 35 const string16& database_name, |
| 36 DatabaseDetails* details); | 36 DatabaseDetails* details); |
| 37 bool InsertDatabaseDetails(const DatabaseDetails& details); | 37 bool InsertDatabaseDetails(const DatabaseDetails& details); |
| 38 bool UpdateDatabaseDetails(const DatabaseDetails& details); | 38 bool UpdateDatabaseDetails(const DatabaseDetails& details); |
| 39 bool DeleteDatabaseDetails(const string16& origin_identifier, | 39 bool DeleteDatabaseDetails(const string16& origin_identifier, |
| 40 const string16& database_name); | 40 const string16& database_name); |
| 41 bool GetAllOrigins(std::vector<string16>* origins); |
| 41 bool GetAllDatabaseDetailsForOrigin(const string16& origin_identifier, | 42 bool GetAllDatabaseDetailsForOrigin(const string16& origin_identifier, |
| 42 std::vector<DatabaseDetails>* details); | 43 std::vector<DatabaseDetails>* details); |
| 44 bool DeleteOrigin(const string16& origin_identifier); |
| 43 private: | 45 private: |
| 44 sql::Connection* db_; | 46 sql::Connection* db_; |
| 45 }; | 47 }; |
| 46 | 48 |
| 47 } // namespace webkit_database | 49 } // namespace webkit_database |
| 48 | 50 |
| 49 #endif // WEBKIT_DATABASE_DATABASES_TABLE_H_ | 51 #endif // WEBKIT_DATABASE_DATABASES_TABLE_H_ |
| OLD | NEW |