Lines Matching refs:db_
42 db_.reset(new InMemoryDatabase);
43 bool success = db_->InitFromDisk(history_filename);
56 if (!db_.get()) {
109 db_->DeleteAllSearchTermsForKeyword(
121 DCHECK(db_.get());
131 URLID id = db_->GetRowForURL(i->url(), NULL);
133 db_->UpdateURLRow(id, *i);
135 id = db_->AddURL(*i);
142 DCHECK(db_.get());
147 db_.reset(new InMemoryDatabase);
148 if (!db_->InitFromScratch())
149 db_.reset();
151 index_->ReloadFromHistory(db_.get(), true);
158 URLID id = db_->GetRowForURL(*i, NULL);
162 db_->DeleteURLRow(id);
176 if (!db_->GetRowForURL(details.url, &url_row)) {
182 url_id = db_->AddURL(new_row);
189 db_->SetKeywordSearchTermsForURL(url_id, details.keyword_id, details.term);
193 URLID id = db_->GetRowForURL(url, NULL);
197 return db_->GetKeywordSearchTermRow(id, NULL);