Home
last modified time | relevance | path

Searched refs:main_db_ (Results 1 – 4 of 4) sorted by relevance

/external/chromium/chrome/browser/history/
Dexpire_history_backend_unittest.cc109 scoped_ptr<HistoryDatabase> main_db_; member in history::ExpireHistoryTest
131 main_db_.reset(new HistoryDatabase); in SetUp()
132 if (main_db_->Init(history_name, FilePath()) != sql::INIT_OK) in SetUp()
133 main_db_.reset(); in SetUp()
142 if (thumb_db_->Init(thumb_name, NULL, main_db_.get()) != sql::INIT_OK) in SetUp()
146 main_db_.get(), main_db_.get())); in SetUp()
150 expirer_.SetDatabases(main_db_.get(), archived_db_.get(), thumb_db_.get(), in SetUp()
164 main_db_.reset(); in TearDown()
192 if (!main_db_.get() || !text_db_.get()) in AddExampleData()
212 url_ids[0] = main_db_->AddURL(url_row1); in AddExampleData()
[all …]
Dexpire_history_backend.cc167 main_db_(NULL), in ExpireHistoryBackend()
182 main_db_ = main_db; in SetDatabases()
189 if (!main_db_) in DeleteURL()
193 if (!main_db_->GetRowForURL(url, &url_row)) in DeleteURL()
201 main_db_->GetVisitsForURL(url_row.id(), &visits); in DeleteURL()
226 if (!main_db_) in ExpireHistoryBetween()
236 main_db_->GetAllVisitsInRange(begin_time, end_time, 0, &visits); in ExpireHistoryBetween()
241 url_ids.insert(main_db_->GetRowForURL(*url, NULL)); in ExpireHistoryBetween()
270 if (!main_db_) in ArchiveHistoryBefore()
370 main_db_->DeleteVisit(visits[i]); in DeleteVisitRelatedInfo()
[all …]
Dexpire_history_backend.h253 HistoryDatabase* main_db_; // Main history database. variable
Dhistory_backend.cc162 : main_db_(main_db), in URLQuerier()
175 if (!main_db_->GetRowForURL(url, row)) { in GetRowForURL()
188 URLDatabase* main_db_; // Guaranteed non-NULL. member in history::HistoryBackend::URLQuerier