Searched refs:main_db_ (Results 1 - 7 of 7) sorted by relevance

/external/chromium/chrome/browser/history/
H A Dexpire_history_backend_unittest.cc109 scoped_ptr<HistoryDatabase> main_db_; member in class:history::ExpireHistoryTest
131 main_db_.reset(new HistoryDatabase);
132 if (main_db_->Init(history_name, FilePath()) != sql::INIT_OK)
133 main_db_.reset();
142 if (thumb_db_->Init(thumb_name, NULL, main_db_.get()) != sql::INIT_OK)
146 main_db_.get(), main_db_.get()));
150 expirer_.SetDatabases(main_db_.get(), archived_db_.get(), thumb_db_.get(),
164 main_db_.reset();
192 if (!main_db_
[all...]
H A Dexpire_history_backend.cc167 main_db_(NULL),
182 main_db_ = main_db;
189 if (!main_db_)
193 if (!main_db_->GetRowForURL(url, &url_row))
201 main_db_->GetVisitsForURL(url_row.id(), &visits);
226 if (!main_db_)
236 main_db_->GetAllVisitsInRange(begin_time, end_time, 0, &visits);
241 url_ids.insert(main_db_->GetRowForURL(*url, NULL));
270 if (!main_db_)
370 main_db_
[all...]
H A Dexpire_history_backend.h150 // Assumes the main_db_ is non-NULL.
253 HistoryDatabase* main_db_; // Main history database. member in class:history::ExpireHistoryBackend
H A Dhistory_backend.cc162 : main_db_(main_db),
175 if (!main_db_->GetRowForURL(url, row)) {
188 URLDatabase* main_db_; // Guaranteed non-NULL. member in class:history::HistoryBackend::URLQuerier
/external/chromium_org/chrome/browser/history/
H A Dexpire_history_backend_unittest.cc109 scoped_ptr<HistoryDatabase> main_db_; member in class:history::ExpireHistoryTest
130 main_db_.reset(new HistoryDatabase);
131 if (main_db_->Init(history_name) != sql::INIT_OK)
132 main_db_.reset();
144 expirer_.SetDatabases(main_db_.get(), archived_db_.get(), thumb_db_.get());
157 main_db_.reset();
189 if (!main_db_.get())
209 url_ids[0] = main_db_->AddURL(url_row1);
216 url_ids[1] = main_db_->AddURL(url_row2);
222 url_ids[2] = main_db_
[all...]
H A Dexpire_history_backend.cc171 main_db_(NULL),
184 main_db_ = main_db;
194 if (!main_db_)
201 if (!main_db_->GetRowForURL(*url, &url_row))
209 main_db_->GetVisitsForURL(url_row.id(), &visits);
233 if (!main_db_)
239 main_db_->GetAllVisitsInRange(begin_time, end_time, 0, &visits);
244 url_ids.insert(main_db_->GetRowForURL(*url, NULL));
266 if (!main_db_)
272 main_db_
[all...]
H A Dexpire_history_backend.h147 // Assumes the main_db_ is non-NULL.
257 HistoryDatabase* main_db_; // Main history database. member in class:history::ExpireHistoryBackend

Completed in 56 milliseconds