| OLD | NEW | 
|    1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2010 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 CHROME_COMMON_SQLITE_UTILS_H_ |    5 #ifndef CHROME_COMMON_SQLITE_UTILS_H_ | 
|    6 #define CHROME_COMMON_SQLITE_UTILS_H_ |    6 #define CHROME_COMMON_SQLITE_UTILS_H_ | 
|    7 #pragma once |    7 #pragma once | 
|    8  |    8  | 
|    9 #include <string> |    9 #include <string> | 
|   10 #include <vector> |   10 #include <vector> | 
|   11  |   11  | 
|   12 #include "base/basictypes.h" |   12 #include "base/basictypes.h" | 
|   13 #include "base/scoped_ptr.h" |   13 #include "base/scoped_ptr.h" | 
|   14 #include "base/string16.h" |   14 #include "base/string16.h" | 
|   15 #include "base/utf_string_conversions.h" |   15 #include "base/utf_string_conversions.h" | 
|   16 #include "third_party/sqlite/preprocessed/sqlite3.h" |   16 #include "third_party/sqlite/sqlite3.h" | 
|   17  |   17  | 
|   18 // forward declarations of classes defined here |   18 // forward declarations of classes defined here | 
|   19 class FilePath; |   19 class FilePath; | 
|   20 class SQLTransaction; |   20 class SQLTransaction; | 
|   21 class SQLNestedTransaction; |   21 class SQLNestedTransaction; | 
|   22 class SQLNestedTransactionSite; |   22 class SQLNestedTransactionSite; | 
|   23 class scoped_sqlite3_stmt_ptr; |   23 class scoped_sqlite3_stmt_ptr; | 
|   24 class SQLStatement; |   24 class SQLStatement; | 
|   25  |   25  | 
|   26 //------------------------------------------------------------------------------ |   26 //------------------------------------------------------------------------------ | 
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  391   return DoesSqliteColumnExist(db, NULL, table_name, column_name, column_type); |  391   return DoesSqliteColumnExist(db, NULL, table_name, column_name, column_type); | 
|  392 } |  392 } | 
|  393  |  393  | 
|  394 // Test whether a table has one or more rows. Returns true if the table |  394 // Test whether a table has one or more rows. Returns true if the table | 
|  395 // has one or more rows and false if the table is empty or doesn't exist. |  395 // has one or more rows and false if the table is empty or doesn't exist. | 
|  396 bool DoesSqliteTableHaveRow(sqlite3* db, const char* table_name); |  396 bool DoesSqliteTableHaveRow(sqlite3* db, const char* table_name); | 
|  397  |  397  | 
|  398 }  // namespace sqlite_utils |  398 }  // namespace sqlite_utils | 
|  399  |  399  | 
|  400 #endif  // CHROME_COMMON_SQLITE_UTILS_H_ |  400 #endif  // CHROME_COMMON_SQLITE_UTILS_H_ | 
| OLD | NEW |