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

Side by Side Diff: chrome/common/sqlite_compiled_statement.cc

Issue 113945: Headers cleanup in chrome/common (Closed)
Patch Set: Created 11 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
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 #include "chrome/common/sqlite_compiled_statement.h" 5 #include "chrome/common/sqlite_compiled_statement.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/stl_util-inl.h" 8 #include "base/stl_util-inl.h"
9 #include "chrome/common/sqlite_utils.h"
10 #include "third_party/sqlite/preprocessed/sqlite3.h"
9 11
10 // SqliteStatementCache ------------------------------------------------------- 12 // SqliteStatementCache -------------------------------------------------------
11 13
12 SqliteStatementCache::~SqliteStatementCache() { 14 SqliteStatementCache::~SqliteStatementCache() {
13 STLDeleteContainerPairSecondPointers(statements_.begin(), statements_.end()); 15 STLDeleteContainerPairSecondPointers(statements_.begin(), statements_.end());
14 statements_.clear(); 16 statements_.clear();
15 db_ = NULL; 17 db_ = NULL;
16 } 18 }
17 19
18 void SqliteStatementCache::set_db(sqlite3* db) { 20 void SqliteStatementCache::set_db(sqlite3* db) {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 return *statement_; 76 return *statement_;
75 } 77 }
76 SQLStatement* SqliteCompiledStatement::operator->() { 78 SQLStatement* SqliteCompiledStatement::operator->() {
77 DCHECK(statement_) << "Should check is_valid() before using the statement."; 79 DCHECK(statement_) << "Should check is_valid() before using the statement.";
78 return statement_; 80 return statement_;
79 } 81 }
80 SQLStatement* SqliteCompiledStatement::statement() { 82 SQLStatement* SqliteCompiledStatement::statement() {
81 DCHECK(statement_) << "Should check is_valid() before using the statement."; 83 DCHECK(statement_) << "Should check is_valid() before using the statement.";
82 return statement_; 84 return statement_;
83 } 85 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698