Searched refs:top_sites (Results 1 – 8 of 8) sorted by relevance
/external/chromium/chrome/browser/history/ |
D | top_sites_unittest.cc | 68 void QueryTopSites(TopSites* top_sites, bool wait) { in QueryTopSites() argument 70 top_sites->GetMostVisitedURLs( in QueryTopSites() 158 return top_sites()->GetPageThumbnail(url, &data) ? in GetThumbnail() 190 top_sites()->backend_->DoEmptyRequest( in WaitForTopSites() 196 TopSites* top_sites() { return profile_->GetTopSites(); } in top_sites() function in history::TopSitesTest 283 return top_sites()->cache_->GetCanonicalURL(url); in GetCanonicalURL() 287 top_sites()->SetTopSites(new_top_sites); in SetTopSites() 291 top_sites()->StartQueryForMostVisited(); in StartQueryForMostVisited() 300 top_sites()->last_num_urls_changed_ = value; in SetLastNumUrlsChanged() 303 size_t last_num_urls_changed() { return top_sites()->last_num_urls_changed_; } in last_num_urls_changed() [all …]
|
D | top_sites.cc | 77 LoadThumbnailsFromHistoryTask(TopSites* top_sites, in LoadThumbnailsFromHistoryTask() argument 79 : top_sites_(top_sites), in LoadThumbnailsFromHistoryTask() 241 filtered_urls = thread_safe_cache_->top_sites(); in GetMostVisitedURLs() 516 return loaded_ && cache_->top_sites().size() >= kTopSitesNumber; in IsFull() 529 cache_->top_sites()[cache_->GetURLIndex(url)]; in SetPageThumbnailNoDB() 562 const MostVisitedURL& most_visited = cache_->top_sites()[index]; in SetPageThumbnailEncoded() 746 if (cache_->top_sites().size() <= arraysize(kPrepopulateTitleIDs)) in GetUpdateDelay() 751 last_num_urls_changed_ * range / cache_->top_sites().size(); in GetUpdateDelay() 790 MostVisitedURLList new_top_sites(cache_->top_sites()); in Observe() 819 MostVisitedURLList top_sites(new_top_sites); in SetTopSites() local [all …]
|
D | top_sites_cache.h | 27 void SetTopSites(const MostVisitedURLList& top_sites); 28 const MostVisitedURLList& top_sites() const { return top_sites_; } in top_sites() function
|
D | top_sites_cache.cc | 18 void TopSitesCache::SetTopSites(const MostVisitedURLList& top_sites) { in SetTopSites() argument 19 top_sites_ = top_sites; in SetTopSites()
|
/external/chromium/chrome/browser/tab_contents/ |
D | thumbnail_generator_unittest.cc | 331 scoped_refptr<MockTopSites> top_sites(new MockTopSites(&profile)); in TEST() local 335 &profile, top_sites.get(), kBadURL)); in TEST() 339 &profile, top_sites.get(), kGoodURL)); in TEST() 344 &profile, top_sites.get(), kGoodURL)); in TEST() 349 &profile, top_sites.get(), kGoodURL)); in TEST() 354 top_sites->AddKnownURL(kGoodURL, bad_score); in TEST() 355 ASSERT_TRUE(top_sites->IsFull()); in TEST() 361 &profile, top_sites.get(), kAnotherGoodURL)); in TEST() 365 &profile, top_sites.get(), kGoodURL)); in TEST() 373 top_sites->AddKnownURL(kGoodURL, good_score); in TEST() [all …]
|
D | thumbnail_generator.cc | 441 history::TopSites* top_sites = tab_contents->profile()->GetTopSites(); in UpdateThumbnailIfNecessary() local 443 if (!ShouldUpdateThumbnail(tab_contents->profile(), top_sites, url)) in UpdateThumbnailIfNecessary() 463 top_sites->SetPageThumbnail(url, thumbnail, score); in UpdateThumbnailIfNecessary() 468 history::TopSites* top_sites, in ShouldUpdateThumbnail() argument 470 if (!profile || !top_sites) in ShouldUpdateThumbnail() 479 if (top_sites->IsFull() && !top_sites->IsKnownURL(url)) in ShouldUpdateThumbnail() 483 if (top_sites->GetPageThumbnailScore(url, ¤t_score) && in ShouldUpdateThumbnail() 489 if (top_sites->GetTemporaryPageThumbnailScore(url, &temporary_score) && in ShouldUpdateThumbnail()
|
D | thumbnail_generator.h | 122 history::TopSites* top_sites,
|
/external/chromium/chrome/browser/automation/ |
D | testing_automation_provider.cc | 4534 history::TopSites* top_sites = browser->profile()->GetTopSites(); in MoveNTPMostVisitedThumbnail() local 4535 if (!top_sites) { in MoveNTPMostVisitedThumbnail() 4542 if (top_sites->GetPinnedURLAtIndex(index, &swapped)) { in MoveNTPMostVisitedThumbnail() 4543 top_sites->AddPinnedURL(swapped, old_index); in MoveNTPMostVisitedThumbnail() 4545 top_sites->AddPinnedURL(GURL(url), index); in MoveNTPMostVisitedThumbnail() 4559 history::TopSites* top_sites = browser->profile()->GetTopSites(); in RemoveNTPMostVisitedThumbnail() local 4560 if (!top_sites) { in RemoveNTPMostVisitedThumbnail() 4564 top_sites->AddBlacklistedURL(GURL(url)); in RemoveNTPMostVisitedThumbnail() 4578 history::TopSites* top_sites = browser->profile()->GetTopSites(); in UnpinNTPMostVisitedThumbnail() local 4579 if (!top_sites) { in UnpinNTPMostVisitedThumbnail() [all …]
|