Home
last modified time | relevance | path

Searched refs:TextDatabase (Results 1 – 10 of 10) sorted by relevance

/external/chromium/chrome/browser/history/
Dtext_database_unittest.cc52 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 …]
Dtext_database.cc61 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 …]
Dtext_database_manager.h62 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;
Dtext_database_manager.cc99 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 …]
Dtext_database.h23 class TextDatabase {
71 TextDatabase(const FilePath& path,
74 ~TextDatabase();
161 DISALLOW_COPY_AND_ASSIGN(TextDatabase);
Dtext_database_manager_unittest.cc137 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()
Dexpire_history_backend.cc688 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()
Dexpire_history_backend_unittest.cc346 std::vector<TextDatabase::Match> results; in CountTextMatchesForURL()
480 TextDatabase::IDToFileName(text_db_->TimeToID(visit_times[3]))); in TEST_F()
Dhistory_backend_unittest.cc340 std::vector<TextDatabase::Match> text_matches; in TEST_F()
Dhistory_backend.cc1248 std::vector<TextDatabase::Match> fts_matches; in QueryHistoryFTS()