Lines Matching refs:TopSites
74 // TopSites::FinishHistoryMigration.
77 LoadThumbnailsFromHistoryTask(TopSites* top_sites,
118 scoped_refptr<TopSites> top_sites_;
130 TopSites::TopSites(Profile* profile)
166 void TopSites::Init(const FilePath& db_name) {
173 NewCallback(this, &TopSites::OnGotMostVisitedThumbnails));
185 bool TopSites::SetPageThumbnail(const GURL& url,
223 void TopSites::GetMostVisitedURLs(CancelableRequestConsumer* consumer,
246 bool TopSites::GetPageThumbnail(const GURL& url,
253 bool TopSites::GetPageThumbnailScore(const GURL& url,
260 bool TopSites::GetTemporaryPageThumbnailScore(const GURL& url,
282 void TopSites::MigrateFromHistory() {
295 void TopSites::FinishHistoryMigration(const ThumbnailMigration& data) {
323 NewCallback(this, &TopSites::OnHistoryMigrationWrittenToDisk));
326 void TopSites::HistoryLoaded() {
334 // TopSites thought it needed migration, but it really didn't. This
343 bool TopSites::HasBlacklistedItems() const {
347 void TopSites::AddBlacklistedURL(const GURL& url) {
362 void TopSites::RemoveBlacklistedURL(const GURL& url) {
373 bool TopSites::IsBlacklisted(const GURL& url) {
378 void TopSites::ClearBlacklistedURLs() {
389 void TopSites::AddPinnedURL(const GURL& url, size_t pinned_index) {
411 bool TopSites::IsURLPinned(const GURL& url) {
416 void TopSites::RemovePinnedURL(const GURL& url) {
429 bool TopSites::GetPinnedURLAtIndex(size_t index, GURL* url) {
443 void TopSites::Shutdown() {
453 void TopSites::DiffMostVisited(const MostVisitedURLList& old_list,
494 CancelableRequestProvider::Handle TopSites::StartQueryForMostVisited() {
506 NewCallback(this, &TopSites::OnTopSitesAvailableFromHistory));
511 bool TopSites::IsKnownURL(const GURL& url) {
515 bool TopSites::IsFull() {
519 TopSites::~TopSites() {
522 bool TopSites::SetPageThumbnailNoDB(const GURL& url,
551 bool TopSites::SetPageThumbnailEncoded(const GURL& url,
570 bool TopSites::EncodeBitmap(const SkBitmap& bitmap,
589 void TopSites::RemoveTemporaryThumbnailByURL(const GURL& url) {
599 void TopSites::AddTemporaryThumbnail(const GURL& url,
612 void TopSites::TimerFired() {
617 int TopSites::GetRedirectDistanceForURL(const MostVisitedURL& most_visited,
628 MostVisitedURLList TopSites::GetPrepopulatePages() {
642 bool TopSites::AddPrepopulatedPages(MostVisitedURLList* urls) {
655 void TopSites::MigratePinnedURLs() {
687 void TopSites::ApplyBlacklistAndPinnedURLs(const MostVisitedURLList& urls,
735 std::string TopSites::GetURLString(const GURL& url) {
739 std::string TopSites::GetURLHash(const GURL& url) {
745 base::TimeDelta TopSites::GetUpdateDelay() {
756 void TopSites::ProcessPendingCallbacks(
768 void TopSites::Observe(NotificationType type,
816 void TopSites::SetTopSites(const MostVisitedURLList& new_top_sites) {
865 int TopSites::num_results_to_request_from_history() const {
871 void TopSites::MoveStateToLoaded() {
895 Details<TopSites>(this));
898 void TopSites::ResetThreadSafeCache() {
905 void TopSites::ResetThreadSafeImageCache() {
911 void TopSites::RestartQueryForTopSitesTimer(base::TimeDelta delta) {
919 timer_.Start(delta, this, &TopSites::TimerFired);
922 void TopSites::OnHistoryMigrationWrittenToDisk(TopSitesBackend::Handle handle) {
934 void TopSites::OnGotMostVisitedThumbnails(
973 void TopSites::OnTopSitesAvailableFromHistory(
981 Source<TopSites>(this),