Searched refs:TextDatabase (Results 1 – 10 of 10) sorted by relevance
/external/chromium/chrome/browser/history/ |
D | text_database_unittest.cc | 52 int RowCount(TextDatabase* db) { in RowCount() 57 std::vector<TextDatabase::Match> results; in RowCount() 59 TextDatabase::URLSet unique_urls; in RowCount() 66 void AddAllTestData(TextDatabase* db) { in AddAllTestData() 76 bool ResultsHaveURL(const std::vector<TextDatabase::Match>& results, in ResultsHaveURL() 105 TextDatabase* CreateDB(TextDatabase::DBIdent id, in CreateDB() 108 TextDatabase* db = new TextDatabase(temp_dir_.path(), id, allow_create); in CreateDB() 130 scoped_ptr<TextDatabase> db1(CreateDB(kIdee1, true, true)); in TEST_F() 137 scoped_ptr<TextDatabase> db2(CreateDB(kIdee2, true, true)); in TEST_F() 151 scoped_ptr<TextDatabase> db3(CreateDB(kIdeeNoExisto, false, true)); in TEST_F() [all …]
|
D | text_database.cc | 61 TextDatabase::Match::Match() {} in Match() 63 TextDatabase::Match::~Match() {} in ~Match() 65 TextDatabase::TextDatabase(const FilePath& path, in TextDatabase() function in history::TextDatabase 75 TextDatabase::~TextDatabase() { in ~TextDatabase() 79 const FilePath::CharType* TextDatabase::file_base() { in file_base() 84 FilePath TextDatabase::IDToFileName(DBIdent id) { in IDToFileName() 97 TextDatabase::DBIdent TextDatabase::FileNameToID(const FilePath& file_path) { in FileNameToID() 121 bool TextDatabase::Init() { in Init() 168 void TextDatabase::BeginTransaction() { in BeginTransaction() 172 void TextDatabase::CommitTransaction() { in CommitTransaction() [all …]
|
D | text_database_manager.h | 62 typedef std::set<TextDatabase::DBIdent> DBSet; 64 void Add(TextDatabase::DBIdent id) { changed_databases_.insert(id); } in Add() 158 std::vector<TextDatabase::Match>* results, 217 static TextDatabase::DBIdent TimeToID(base::Time time); 218 static base::Time IDToTime(TextDatabase::DBIdent id); 230 TextDatabase* GetDB(TextDatabase::DBIdent id, bool for_writing); 231 TextDatabase* GetDBForTime(base::Time time, bool for_writing); 276 typedef OwningMRUCache<TextDatabase::DBIdent, TextDatabase*> DBCache; 288 typedef std::set<TextDatabase::DBIdent> DBIdentSet;
|
D | text_database_manager.cc | 99 TextDatabase::DBIdent TextDatabaseManager::TimeToID(Time time) { in TimeToID() 109 Time TextDatabaseManager::IDToTime(TextDatabase::DBIdent id) { in IDToTime() 158 FilePath::StringType filepattern(TextDatabase::file_base()); in InitDBList() 165 TextDatabase::DBIdent id = TextDatabase::FileNameToID(cur_file); in InitDBList() 275 TextDatabase* db = GetDBForTime(visit_time, true); in AddPageData() 331 TextDatabase::DBIdent db_ident = TimeToID(time); in DeletePageData() 337 TextDatabase* db = GetDB(db_ident, false); in DeletePageData() 388 FilePath file_name = dir_.Append(TextDatabase::IDToFileName(*i)); in DeleteAll() 402 TextDatabase* db = GetDB(*i, false); in OptimizeChangedDatabases() 415 std::vector<TextDatabase::Match>* results, in GetTextMatches() [all …]
|
D | text_database.h | 23 class TextDatabase { 71 TextDatabase(const FilePath& path, 74 ~TextDatabase(); 161 DISALLOW_COPY_AND_ASSIGN(TextDatabase);
|
D | text_database_manager_unittest.cc | 137 bool ResultsHaveURL(const std::vector<TextDatabase::Match>& results, in ResultsHaveURL() 184 std::vector<TextDatabase::Match> results; in TEST_F() 219 std::vector<TextDatabase::Match> results; in TEST_F() 255 std::vector<TextDatabase::Match> results; in TEST_F() 298 std::vector<TextDatabase::Match> results; in TEST_F() 350 std::vector<TextDatabase::Match> results; in TEST_F() 376 std::vector<TextDatabase::Match> results; in TEST_F() 413 std::vector<TextDatabase::Match> results; in TEST_F() 463 std::vector<TextDatabase::Match> results; in TEST_F() 505 std::vector<TextDatabase::Match> results; in TEST_F()
|
D | expire_history_backend.cc | 688 TextDatabase::DBIdent cutoff_id = in DoExpireHistoryIndexFiles() 691 FilePath::StringType history_index_files_pattern = TextDatabase::file_base(); in DoExpireHistoryIndexFiles() 698 TextDatabase::DBIdent file_id = TextDatabase::FileNameToID(file); in DoExpireHistoryIndexFiles()
|
D | expire_history_backend_unittest.cc | 346 std::vector<TextDatabase::Match> results; in CountTextMatchesForURL() 480 TextDatabase::IDToFileName(text_db_->TimeToID(visit_times[3]))); in TEST_F()
|
D | history_backend_unittest.cc | 340 std::vector<TextDatabase::Match> text_matches; in TEST_F()
|
D | history_backend.cc | 1248 std::vector<TextDatabase::Match> fts_matches; in QueryHistoryFTS()
|