Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1344)

Side by Side Diff: webkit/database/databases_table.cc

Issue 3806005: FBTF: More ctor/dtor cleanup. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/database/databases_table.h ('k') | webkit/fileapi/file_system_quota.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/statement.h" 7 #include "app/sql/statement.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 10
11 namespace webkit_database { 11 namespace webkit_database {
12 12
13 DatabaseDetails::DatabaseDetails() : estimated_size(0) { }
14
15 DatabaseDetails::~DatabaseDetails() {}
16
13 bool DatabasesTable::Init() { 17 bool DatabasesTable::Init() {
14 // 'Databases' schema: 18 // 'Databases' schema:
15 // id A unique ID assigned to each database 19 // id A unique ID assigned to each database
16 // origin The originto which the database belongs. This is a 20 // origin The originto which the database belongs. This is a
17 // string that can be used as part of a file name 21 // string that can be used as part of a file name
18 // (http_webkit.org_0, for example). 22 // (http_webkit.org_0, for example).
19 // name The database name. 23 // name The database name.
20 // description A short description of the database. 24 // description A short description of the database.
21 // estimated_size The estimated size of the database. 25 // estimated_size The estimated size of the database.
22 return db_->DoesTableExist("Databases") || 26 return db_->DoesTableExist("Databases") ||
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 SQL_FROM_HERE, "DELETE FROM Databases WHERE origin = ?")); 154 SQL_FROM_HERE, "DELETE FROM Databases WHERE origin = ?"));
151 if (delete_statement.is_valid() && 155 if (delete_statement.is_valid() &&
152 delete_statement.BindString(0, UTF16ToUTF8(origin_identifier))) { 156 delete_statement.BindString(0, UTF16ToUTF8(origin_identifier))) {
153 return (delete_statement.Run() && db_->GetLastChangeCount()); 157 return (delete_statement.Run() && db_->GetLastChangeCount());
154 } 158 }
155 159
156 return false; 160 return false;
157 } 161 }
158 162
159 } // namespace webkit_database 163 } // namespace webkit_database
OLDNEW
« no previous file with comments | « webkit/database/databases_table.h ('k') | webkit/fileapi/file_system_quota.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698