Lines Matching refs:db_
58 db_(NULL),
98 DCHECK(!db_.get()) << "Close should have already been called.";
139 scoped_ptr<sql::Connection> db_;
207 DCHECK(!db_.get());
211 // we are going to disk anyway in db_->Open. (This code will be moved to the
220 db_.reset(new sql::Connection);
221 if (!db_->Open(path_)) {
223 db_.reset();
230 db_->set_error_delegate(GetErrorHandlerForCookieDb());
233 if (!EnsureDatabaseVersion() || !InitTable(db_.get())) {
235 db_.reset();
239 db_->Preload();
242 sql::Statement smt(db_->GetUniqueStatement(
247 db_.reset();
288 db_.get(), kCurrentVersionNumber, kCompatibleVersionNumber)) {
299 sql::Transaction transaction(db_.get());
302 if (!db_->Execute("ALTER TABLE cookies ADD COLUMN last_access_utc "
304 !db_->Execute("UPDATE cookies SET last_access_utc = creation_utc")) {
322 sql::Transaction transaction(db_.get());
325 db_->Execute(
331 db_->Execute(
337 db_->Execute(
444 if (!db_.get() || ops.empty())
447 sql::Statement add_smt(db_->GetCachedStatement(SQL_FROM_HERE,
456 sql::Statement update_access_smt(db_->GetCachedStatement(SQL_FROM_HERE,
463 sql::Statement del_smt(db_->GetCachedStatement(SQL_FROM_HERE,
470 sql::Transaction transaction(db_.get());
584 db_.reset();