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

Unified Diff: chrome/common/sqlite_utils.h

Issue 19610: Safe browsing cleanup:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_constants.cc ('k') | chrome/common/sqlite_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/sqlite_utils.h
===================================================================
--- chrome/common/sqlite_utils.h (revision 8772)
+++ chrome/common/sqlite_utils.h (working copy)
@@ -13,6 +13,7 @@
#include "third_party/sqlite/preprocessed/sqlite3.h"
// forward declarations of classes defined here
+class FilePath;
class SQLTransaction;
class SQLNestedTransaction;
class SQLNestedTransactionSite;
@@ -311,6 +312,13 @@
DISALLOW_COPY_AND_ASSIGN(SQLStatement);
};
+// TODO(estade): wrap the following static functions in a namespace.
+
+// Opens the DB in the file pointed to by |filepath|.
+// See http://www.sqlite.org/capi3ref.html#sqlite3_open for an explanation
+// of the return value.
+int OpenSqliteDb(const FilePath& filepath, sqlite3** database);
+
// Returns true if there is a table with the given name in the database.
// For the version where a database name is specified, it may be NULL or the
// empty string if no database name is necessary.
@@ -321,7 +329,6 @@
return DoesSqliteTableExist(db, NULL, table_name);
}
-
// Test whether a table has a column matching the provided name and type.
// Returns true if the column exist and false otherwise. There are two
// versions, one that takes a database name, the other that doesn't. The
« no previous file with comments | « chrome/common/chrome_constants.cc ('k') | chrome/common/sqlite_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698