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

Side by Side Diff: sql/connection.h

Issue 1133053004: sql: Remove basictypes.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: shess review Created 5 years, 7 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 | sql/connection.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 SQL_CONNECTION_H_ 5 #ifndef SQL_CONNECTION_H_
6 #define SQL_CONNECTION_H_ 6 #define SQL_CONNECTION_H_
7 7
8 #include <stdint.h>
8 #include <map> 9 #include <map>
9 #include <set> 10 #include <set>
10 #include <string> 11 #include <string>
11 #include <vector> 12 #include <vector>
12 13
13 #include "base/basictypes.h"
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
18 #include "base/threading/thread_restrictions.h" 19 #include "base/threading/thread_restrictions.h"
19 #include "base/time/time.h" 20 #include "base/time/time.h"
20 #include "sql/sql_export.h" 21 #include "sql/sql_export.h"
21 22
22 struct sqlite3; 23 struct sqlite3;
23 struct sqlite3_stmt; 24 struct sqlite3_stmt;
24 25
25 namespace base { 26 namespace base {
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 // test-then-create, callers should almost always prefer "CREATE TABLE IF NOT 366 // test-then-create, callers should almost always prefer "CREATE TABLE IF NOT
366 // EXISTS" or "CREATE INDEX IF NOT EXISTS". 367 // EXISTS" or "CREATE INDEX IF NOT EXISTS".
367 bool DoesTableExist(const char* table_name) const; 368 bool DoesTableExist(const char* table_name) const;
368 bool DoesIndexExist(const char* index_name) const; 369 bool DoesIndexExist(const char* index_name) const;
369 370
370 // Returns true if a column with the given name exists in the given table. 371 // Returns true if a column with the given name exists in the given table.
371 bool DoesColumnExist(const char* table_name, const char* column_name) const; 372 bool DoesColumnExist(const char* table_name, const char* column_name) const;
372 373
373 // Returns sqlite's internal ID for the last inserted row. Valid only 374 // Returns sqlite's internal ID for the last inserted row. Valid only
374 // immediately after an insert. 375 // immediately after an insert.
375 int64 GetLastInsertRowId() const; 376 int64_t GetLastInsertRowId() const;
376 377
377 // Returns sqlite's count of the number of rows modified by the last 378 // Returns sqlite's count of the number of rows modified by the last
378 // statement executed. Will be 0 if no statement has executed or the database 379 // statement executed. Will be 0 if no statement has executed or the database
379 // is closed. 380 // is closed.
380 int GetLastChangeCount() const; 381 int GetLastChangeCount() const;
381 382
382 // Errors -------------------------------------------------------------------- 383 // Errors --------------------------------------------------------------------
383 384
384 // Returns the error code associated with the last sqlite operation. 385 // Returns the error code associated with the last sqlite operation.
385 int GetErrorCode() const; 386 int GetErrorCode() const;
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 593
593 // Tag for auxiliary histograms. 594 // Tag for auxiliary histograms.
594 std::string histogram_tag_; 595 std::string histogram_tag_;
595 596
596 DISALLOW_COPY_AND_ASSIGN(Connection); 597 DISALLOW_COPY_AND_ASSIGN(Connection);
597 }; 598 };
598 599
599 } // namespace sql 600 } // namespace sql
600 601
601 #endif // SQL_CONNECTION_H_ 602 #endif // SQL_CONNECTION_H_
OLDNEW
« no previous file with comments | « no previous file | sql/connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698