Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: components/history/core/browser/history_service.cc

Issue 1055173003: Remove unused ThumbnailDatabase::UpdateIconMapping() and ThumbnailDatabase::CloneIconMappings() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The history system runs on a background thread so that potentially slow 5 // The history system runs on a background thread so that potentially slow
6 // database operations don't delay the browser. This backend processing is 6 // database operations don't delay the browser. This backend processing is
7 // represented by HistoryBackend. The HistoryService's job is to dispatch to 7 // represented by HistoryBackend. The HistoryService's job is to dispatch to
8 // that thread. 8 // that thread.
9 // 9 //
10 // Main thread History thread 10 // Main thread History thread
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 } 615 }
616 616
617 void HistoryService::SetFaviconsOutOfDateForPage(const GURL& page_url) { 617 void HistoryService::SetFaviconsOutOfDateForPage(const GURL& page_url) {
618 DCHECK(thread_) << "History service being called after cleanup"; 618 DCHECK(thread_) << "History service being called after cleanup";
619 DCHECK(thread_checker_.CalledOnValidThread()); 619 DCHECK(thread_checker_.CalledOnValidThread());
620 ScheduleTask(PRIORITY_NORMAL, 620 ScheduleTask(PRIORITY_NORMAL,
621 base::Bind(&HistoryBackend::SetFaviconsOutOfDateForPage, 621 base::Bind(&HistoryBackend::SetFaviconsOutOfDateForPage,
622 history_backend_.get(), page_url)); 622 history_backend_.get(), page_url));
623 } 623 }
624 624
625 void HistoryService::CloneFavicons(const GURL& old_page_url,
626 const GURL& new_page_url) {
627 DCHECK(thread_) << "History service being called after cleanup";
628 DCHECK(thread_checker_.CalledOnValidThread());
629 ScheduleTask(PRIORITY_NORMAL,
630 base::Bind(&HistoryBackend::CloneFavicons,
631 history_backend_.get(), old_page_url, new_page_url));
632 }
633
634 void HistoryService::SetImportedFavicons( 625 void HistoryService::SetImportedFavicons(
635 const favicon_base::FaviconUsageDataList& favicon_usage) { 626 const favicon_base::FaviconUsageDataList& favicon_usage) {
636 DCHECK(thread_) << "History service being called after cleanup"; 627 DCHECK(thread_) << "History service being called after cleanup";
637 DCHECK(thread_checker_.CalledOnValidThread()); 628 DCHECK(thread_checker_.CalledOnValidThread());
638 ScheduleTask(PRIORITY_NORMAL, 629 ScheduleTask(PRIORITY_NORMAL,
639 base::Bind(&HistoryBackend::SetImportedFavicons, 630 base::Bind(&HistoryBackend::SetImportedFavicons,
640 history_backend_.get(), favicon_usage)); 631 history_backend_.get(), favicon_usage));
641 } 632 }
642 633
643 base::CancelableTaskTracker::TaskId HistoryService::QueryURL( 634 base::CancelableTaskTracker::TaskId HistoryService::QueryURL(
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 return favicon_changed_callback_list_.Add(callback); 1124 return favicon_changed_callback_list_.Add(callback);
1134 } 1125 }
1135 1126
1136 void HistoryService::NotifyFaviconChanged( 1127 void HistoryService::NotifyFaviconChanged(
1137 const std::set<GURL>& changed_favicons) { 1128 const std::set<GURL>& changed_favicons) {
1138 DCHECK(thread_checker_.CalledOnValidThread()); 1129 DCHECK(thread_checker_.CalledOnValidThread());
1139 favicon_changed_callback_list_.Notify(changed_favicons); 1130 favicon_changed_callback_list_.Notify(changed_favicons);
1140 } 1131 }
1141 1132
1142 } // namespace history 1133 } // namespace history
OLDNEW
« no previous file with comments | « components/history/core/browser/history_service.h ('k') | components/history/core/browser/thumbnail_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698