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

Side by Side Diff: chrome/browser/sync/util/sqlite_utils.h

Issue 7550059: Move sqlite_utils.* to sync/util/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_SYNC_UTIL_SQLITE_UTILS_H_
6 #define CHROME_COMMON_SQLITE_UTILS_H_ 6 #define CHROME_BROWSER_SYNC_UTIL_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/memory/scoped_ptr.h" 13 #include "base/memory/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/sqlite3.h" 16 #include "third_party/sqlite/sqlite3.h"
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 const char* column_type) { 390 const char* column_type) {
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_BROWSER_SYNC_UTIL_SQLITE_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/syncable/directory_backing_store.cc ('k') | chrome/browser/sync/util/sqlite_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698