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

Side by Side Diff: chrome/common/sqlite_utils.h

Issue 173033: Stub out sqlite3Preload when using system library. (Closed)
Patch Set: ... Created 11 years, 4 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
« no previous file with comments | « no previous file | chrome/common/sqlite_utils.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_SQLITEUTILS_H_ 5 #ifndef CHROME_COMMON_SQLITEUTILS_H_
6 #define CHROME_COMMON_SQLITEUTILS_H_ 6 #define CHROME_COMMON_SQLITEUTILS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 const char* table_name, 366 const char* table_name,
367 const char* column_name, 367 const char* column_name,
368 const char* column_type) { 368 const char* column_type) {
369 return DoesSqliteColumnExist(db, NULL, table_name, column_name, column_type); 369 return DoesSqliteColumnExist(db, NULL, table_name, column_name, column_type);
370 } 370 }
371 371
372 // Test whether a table has one or more rows. Returns true if the table 372 // Test whether a table has one or more rows. Returns true if the table
373 // has one or more rows and false if the table is empty or doesn't exist. 373 // has one or more rows and false if the table is empty or doesn't exist.
374 bool DoesSqliteTableHaveRow(sqlite3* db, const char* table_name); 374 bool DoesSqliteTableHaveRow(sqlite3* db, const char* table_name);
375 375
376 #if defined(USE_SYSTEM_SQLITE)
377 // This function is a local change to sqlite3 which doesn't exist when one is
378 // using the system sqlite library. Thus, we stub it out here.
379 int sqlite3Preload(sqlite3* db);
380 #endif
381
376 #endif // CHROME_COMMON_SQLITEUTILS_H_ 382 #endif // CHROME_COMMON_SQLITEUTILS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/common/sqlite_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698