| 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 #include "webkit/database/databases_table.h" | 5 #include "webkit/database/databases_table.h" |
| 6 | 6 |
| 7 #include "app/sql/connection.h" | 7 #include "app/sql/connection.h" |
| 8 #include "app/sql/statement.h" | 8 #include "app/sql/statement.h" |
| 9 #include "base/string_util.h" | 9 #include "base/logging.h" |
| 10 #include "base/utf_string_conversions.h" |
| 10 | 11 |
| 11 namespace webkit_database { | 12 namespace webkit_database { |
| 12 | 13 |
| 13 bool DatabasesTable::Init() { | 14 bool DatabasesTable::Init() { |
| 14 // 'Databases' schema: | 15 // 'Databases' schema: |
| 15 // id A unique ID assigned to each database | 16 // id A unique ID assigned to each database |
| 16 // origin The originto which the database belongs. This is a | 17 // origin The originto which the database belongs. This is a |
| 17 // string that can be used as part of a file name | 18 // string that can be used as part of a file name |
| 18 // (http_webkit.org_0, for example). | 19 // (http_webkit.org_0, for example). |
| 19 // name The database name. | 20 // name The database name. |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 details.estimated_size = statement.ColumnInt64(2); | 128 details.estimated_size = statement.ColumnInt64(2); |
| 128 details_vector->push_back(details); | 129 details_vector->push_back(details); |
| 129 } | 130 } |
| 130 return statement.Succeeded(); | 131 return statement.Succeeded(); |
| 131 } | 132 } |
| 132 | 133 |
| 133 return false; | 134 return false; |
| 134 } | 135 } |
| 135 | 136 |
| 136 } // namespace webkit_database | 137 } // namespace webkit_database |
| OLD | NEW |