Home
last modified time | relevance | path

Searched refs:url_id (Results 1 – 25 of 26) sorted by relevance

12

/external/chromium/chrome/browser/history/
Durl_database_unittest.cc133 URLID url_id = AddURL(url_info1); in TEST_F() local
134 ASSERT_TRUE(url_id != 0); in TEST_F()
139 ASSERT_TRUE(SetKeywordSearchTermsForURL(url_id, keyword_id, keyword)); in TEST_F()
148 ASSERT_TRUE(GetKeywordSearchTermRow(url_id, &keyword_search_term_row)); in TEST_F()
150 EXPECT_EQ(url_id, keyword_search_term_row.url_id); in TEST_F()
161 ASSERT_FALSE(GetKeywordSearchTermRow(url_id, &keyword_search_term_row)); in TEST_F()
172 URLID url_id = AddURL(url_info1); in TEST_F() local
173 ASSERT_TRUE(url_id != 0); in TEST_F()
176 ASSERT_TRUE(SetKeywordSearchTermsForURL(url_id, 1, UTF8ToUTF16("visit"))); in TEST_F()
179 ASSERT_TRUE(DeleteURLRow(url_id)); in TEST_F()
Dtext_database_manager_unittest.cc76 visit_row.url_id = 1; in AddAllPages()
85 manager.AddPageData(GURL(kURL1), visit_row.url_id, visit_row.visit_id, in AddAllPages()
90 visit_row.url_id = 2; in AddAllPages()
94 manager.AddPageData(GURL(kURL2), visit_row.url_id, visit_row.visit_id, in AddAllPages()
99 visit_row.url_id = 2; in AddAllPages()
103 manager.AddPageData(GURL(kURL3), visit_row.url_id, visit_row.visit_id, in AddAllPages()
109 visit_row.url_id = 2; in AddAllPages()
113 manager.AddPageData(GURL(kURL4), visit_row.url_id, visit_row.visit_id, in AddAllPages()
118 visit_row.url_id = 2; in AddAllPages()
122 manager.AddPageData(GURL(kURL5), visit_row.url_id, visit_row.visit_id, in AddAllPages()
[all …]
Durl_database.cc85 bool URLDatabase::GetURLRow(URLID url_id, URLRow* info) { in GetURLRow() argument
95 statement.BindInt64(0, url_id); in GetURLRow()
133 bool URLDatabase::UpdateURLRow(URLID url_id, in UpdateURLRow() argument
147 statement.BindInt64(5, url_id); in UpdateURLRow()
406 bool URLDatabase::SetKeywordSearchTermsForURL(URLID url_id, in SetKeywordSearchTermsForURL() argument
409 DCHECK(url_id && keyword_id && !term.empty()); in SetKeywordSearchTermsForURL()
417 exist_statement.BindInt64(1, url_id); in SetKeywordSearchTermsForURL()
428 statement.BindInt64(1, url_id); in SetKeywordSearchTermsForURL()
434 bool URLDatabase::GetKeywordSearchTermRow(URLID url_id, in GetKeywordSearchTermRow() argument
436 DCHECK(url_id); in GetKeywordSearchTermRow()
[all …]
Dvisit_database.cc91 visit->url_id = statement.ColumnInt64(1); in FillVisitRow()
116 << "url_id = " << visit->url_id; in AddVisit()
120 statement.BindInt64(0, visit->url_id); in AddVisit()
129 << "url_id = " << visit->url_id; in AddVisit()
220 statement.BindInt64(0, visit.url_id); in UpdateVisitRow()
230 bool VisitDatabase::GetVisitsForURL(URLID url_id, VisitVector* visits) { in GetVisitsForURL() argument
241 statement.BindInt64(0, url_id); in GetVisitsForURL()
332 if (found_urls.find(visit.url_id) != found_urls.end()) in GetVisibleVisitsInRange()
334 found_urls.insert(visit.url_id); in GetVisibleVisitsInRange()
342 VisitID VisitDatabase::GetMostRecentVisitForURL(URLID url_id, in GetMostRecentVisitForURL() argument
[all …]
Dvisit_database_unittest.cc26 a.url_id == b.url_id && in IsVisitInfoEqual()
76 VisitRow visit_info2(visit_info1.url_id, in TEST_F()
89 EXPECT_TRUE(GetVisitsForURL(visit_info1.url_id, &matches)); in TEST_F()
118 EXPECT_TRUE(GetVisitsForURL(visit_info1.url_id, &matches)); in TEST_F()
131 EXPECT_TRUE(GetVisitsForURL(visit_info1.url_id, &matches)); in TEST_F()
144 modification.url_id = 2; in TEST_F()
170 VisitRow visit_info2(visit_info1.url_id, in TEST_F()
Dexpire_history_backend_unittest.cc69 bool HasThumbnail(URLID url_id);
241 visit_row1.url_id = url_ids[0]; in AddExampleData()
247 visit_row2.url_id = url_ids[1]; in AddExampleData()
253 visit_row3.url_id = url_ids[1]; in AddExampleData()
260 visit_row4.url_id = url_ids[2]; in AddExampleData()
266 text_db_->AddPageData(url_row1.url(), visit_row1.url_id, visit_row1.visit_id, in AddExampleData()
270 text_db_->AddPageData(url_row2.url(), visit_row2.url_id, visit_row2.visit_id, in AddExampleData()
273 text_db_->AddPageData(url_row2.url(), visit_row3.url_id, visit_row3.visit_id, in AddExampleData()
279 text_db_->AddPageData(url_row3.url(), visit_row4.url_id, visit_row4.visit_id, in AddExampleData()
293 URLID url_id = main_db_->AddURL(url_row1); in AddExampleSourceData() local
[all …]
Dhistory_backend.cc329 URLID url_id = db_->GetRowForURL(url, NULL); in UpdateSegments() local
330 if (!url_id) in UpdateSegments()
334 if (!(segment_id = db_->CreateSegment(url_id, segment_name))) { in UpdateSegments()
342 db_->UpdateSegmentRepresentationURL(segment_id, url_id); in UpdateSegments()
669 URLID url_id = db_->GetRowForURL(url, &url_info); in AddPageVisit() local
670 if (url_id) { in AddPageVisit()
682 db_->UpdateURLRow(url_id, url_info); in AddPageVisit()
690 url_id = db_->AddURL(url_info); in AddPageVisit()
691 if (!url_id) { in AddPageVisit()
695 url_info.id_ = url_id; in AddPageVisit()
[all …]
Dvisitsegment_database.h39 URLID url_id);
47 SegmentID CreateSegment(URLID url_id, const std::string& segment_name);
70 bool DeleteSegmentForURL(URLID url_id);
Din_memory_history_backend.cc175 URLID url_id; in OnKeywordSearchTermUpdated() local
182 url_id = db_->AddURL(new_row); in OnKeywordSearchTermUpdated()
183 if (!url_id) in OnKeywordSearchTermUpdated()
186 url_id = url_row.id(); in OnKeywordSearchTermUpdated()
189 db_->SetKeywordSearchTermsForURL(url_id, details.keyword_id, details.term); in OnKeywordSearchTermUpdated()
Durl_database.h56 bool GetURLRow(URLID url_id, URLRow* info);
73 bool UpdateURLRow(URLID url_id, const URLRow& info);
191 bool SetKeywordSearchTermsForURL(URLID url_id,
197 bool GetKeywordSearchTermRow(URLID url_id, KeywordSearchTermRow* row);
Dvisitsegment_database.cc154 URLID url_id) { in UpdateSegmentRepresentationURL() argument
160 statement.BindInt64(0, url_id); in UpdateSegmentRepresentationURL()
177 SegmentID VisitSegmentDatabase::CreateSegment(URLID url_id, in CreateSegment() argument
185 statement.BindInt64(1, url_id); in CreateSegment()
345 bool VisitSegmentDatabase::DeleteSegmentForURL(URLID url_id) { in DeleteSegmentForURL() argument
362 select.BindInt64(0, url_id); in DeleteSegmentForURL()
Dvisit_database.h56 bool GetVisitsForURL(URLID url_id, VisitVector* visits);
105 VisitID GetMostRecentVisitForURL(URLID url_id,
113 bool GetMostRecentVisitsForURL(URLID url_id,
Dtext_database_manager.cc48 TextDatabaseManager::PageInfo::PageInfo(URLID url_id, in PageInfo() argument
51 : url_id_(url_id), in PageInfo()
172 URLID url_id, in AddPageURL() argument
182 recent_changes_.Put(url, PageInfo(url_id, visit_id, time)); in AddPageURL()
224 AddPageData(url, info.url_id(), info.visit_id(), info.visit_time(), in AddPageTitle()
260 AddPageData(url, info.url_id(), info.visit_id(), info.visit_time(), in AddPageContents()
270 URLID url_id, in AddPageData() argument
285 visit_database_->GetVisitsForURL(url_id, &visits); in AddPageData()
550 AddPageData(i->first, i->second.url_id(), i->second.visit_id(), in FlushOldChangesForTime()
Dtext_database_manager.h105 void AddPageURL(const GURL& url, URLID url_id, VisitID visit_id,
115 URLID url_id,
174 PageInfo(URLID url_id, VisitID visit_id, base::Time visit_time);
178 URLID url_id() const { return url_id_; } in url_id() function
Dexpire_history_backend.cc246 if (url_ids.find(visit->url_id) != url_ids.end()) in ExpireHistoryBetween()
374 dependencies->affected_urls.find(visits[i].url_id); in DeleteVisitRelatedInfo()
378 if (!main_db_->GetURLRow(visits[i].url_id, &row)) in DeleteVisitRelatedInfo()
380 dependencies->affected_urls[visits[i].url_id] = row; in DeleteVisitRelatedInfo()
381 cur_row = &dependencies->affected_urls[visits[i].url_id]; in DeleteVisitRelatedInfo()
468 ChangedURL& cur = changed_urls[visits[i].url_id]; in ExpireURLsForVisits()
531 dependencies->affected_urls.find(visits[i].url_id); in ArchiveURLsAndVisits()
536 if (!main_db_->GetURLRow(visits[i].url_id, &row) || in ArchiveURLsAndVisits()
564 cur_visit.url_id = main_id_to_archived_id[cur_visit.url_id]; in ArchiveURLsAndVisits()
Dhistory_types.cc68 url_id(0), in VisitRow()
81 url_id(arg_url_id), in VisitRow()
108 url_id(0) { in StarredEntry()
123 std::swap(url_id, other->url_id); in Swap()
314 KeywordSearchTermRow::KeywordSearchTermRow() : keyword_id(0), url_id(0) {} in KeywordSearchTermRow()
Dstarred_url_database.cc78 entry->url_id = s.ColumnInt64(7); in FillInStarredEntry()
188 StarID StarredURLDatabase::CreateStarredEntryRow(URLID url_id, in CreateStarredEntryRow() argument
196 (type != history::StarredEntry::URL || url_id)); in CreateStarredEntryRow()
220 statement.BindInt64(1, url_id); in CreateStarredEntryRow()
282 entry->url_id = this->AddURL(url_row); in CreateStarredEntry()
284 entry->url_id = url_row.id(); // The caller doesn't have to set this. in CreateStarredEntry()
288 entry->id = CreateStarredEntryRow(entry->url_id, entry->folder_id, in CreateStarredEntry()
293 UpdateURLRow(entry->url_id, url_row); in CreateStarredEntry()
Dstarred_url_database_unittest.cc42 EXPECT_EQ(entry.url_id, db_value.url_id); in CompareEntryByID()
277 DeleteURLRow(entry.url_id); in TEST_F()
Dhistory_types.h201 URLID url_id; variable
324 URLID url_id; member
530 URLID url_id; member
Dstarred_url_database.h91 StarID CreateStarredEntryRow(URLID url_id,
Dexpire_history_backend.h123 void DeleteTextIndexForURL(const GURL& url, URLID url_id, bool update_visits);
Dhistory_backend_unittest.cc462 URLID url_id = backend_->db()->GetRowForURL(url, &row); in TEST_F() local
463 ASSERT_NE(0, url_id); in TEST_F()
474 EXPECT_TRUE(backend_->db()->GetVisitsForURL(url_id, &visits)); in TEST_F()
490 EXPECT_TRUE(backend_->db()->GetVisitsForURL(url_id, &visits)); in TEST_F()
/external/chromium/net/url_request/
Durl_request_throttler_manager.cc25 std::string url_id = GetIdFromUrl(url); in RegisterRequestUrl() local
31 scoped_refptr<URLRequestThrottlerEntry>& entry = url_entries_[url_id]; in RegisterRequestUrl()
67 std::string url_id = GetIdFromUrl(url); in OverrideEntryForTests() local
72 url_entries_[url_id] = entry; in OverrideEntryForTests()
77 std::string url_id = GetIdFromUrl(url); in EraseEntryForTests() local
78 url_entries_.erase(url_id); in EraseEntryForTests()
/external/chromium/chrome/browser/autocomplete/
Dautocomplete_result_unittest.cc17 int url_id; member
57 match->fill_into_edit = base::IntToString16(data.url_id); in PopulateAutocompleteMatch()
58 std::string url_id(1, data.url_id + 'a'); in PopulateAutocompleteMatch() local
59 match->destination_url = GURL("http://" + url_id); in PopulateAutocompleteMatch()
/external/chromium/chrome/browser/extensions/
Dextension_history_api.cc48 value->SetString(keys::kIdKey, base::Int64ToString(row.url_id)); in GetVisitInfoDictionary()

12