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

Side by Side Diff: chrome/browser/history/history_service.cc

Issue 71723003: Remove HistoryPublisher code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove ref to history_indexer.idl Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/history/history_service.h ('k') | chrome/browser/history/history_tab_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 ++i) 589 ++i)
590 urls.push_back(i->url()); 590 urls.push_back(i->url());
591 591
592 visitedlink_master_->AddURLs(urls); 592 visitedlink_master_->AddURLs(urls);
593 } 593 }
594 594
595 ScheduleAndForget(PRIORITY_NORMAL, 595 ScheduleAndForget(PRIORITY_NORMAL,
596 &HistoryBackend::AddPagesWithDetails, info, visit_source); 596 &HistoryBackend::AddPagesWithDetails, info, visit_source);
597 } 597 }
598 598
599 void HistoryService::SetPageContents(const GURL& url,
600 const string16& contents) {
601 DCHECK(thread_checker_.CalledOnValidThread());
602 if (!CanAddURL(url))
603 return;
604
605 ScheduleAndForget(PRIORITY_LOW, &HistoryBackend::SetPageContents,
606 url, contents);
607 }
608
609 CancelableTaskTracker::TaskId HistoryService::GetFavicons( 599 CancelableTaskTracker::TaskId HistoryService::GetFavicons(
610 const std::vector<GURL>& icon_urls, 600 const std::vector<GURL>& icon_urls,
611 int icon_types, 601 int icon_types,
612 int desired_size_in_dip, 602 int desired_size_in_dip,
613 const std::vector<ui::ScaleFactor>& desired_scale_factors, 603 const std::vector<ui::ScaleFactor>& desired_scale_factors,
614 const FaviconService::FaviconResultsCallback& callback, 604 const FaviconService::FaviconResultsCallback& callback,
615 CancelableTaskTracker* tracker) { 605 CancelableTaskTracker* tracker) {
616 DCHECK(thread_checker_.CalledOnValidThread()); 606 DCHECK(thread_checker_.CalledOnValidThread());
617 LoadBackendIfNecessary(); 607 LoadBackendIfNecessary();
618 608
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 DCHECK(thread_checker_.CalledOnValidThread()); 1265 DCHECK(thread_checker_.CalledOnValidThread());
1276 visit_database_observers_.RemoveObserver(observer); 1266 visit_database_observers_.RemoveObserver(observer);
1277 } 1267 }
1278 1268
1279 void HistoryService::NotifyVisitDBObserversOnAddVisit( 1269 void HistoryService::NotifyVisitDBObserversOnAddVisit(
1280 const history::BriefVisitInfo& info) { 1270 const history::BriefVisitInfo& info) {
1281 DCHECK(thread_checker_.CalledOnValidThread()); 1271 DCHECK(thread_checker_.CalledOnValidThread());
1282 FOR_EACH_OBSERVER(history::VisitDatabaseObserver, visit_database_observers_, 1272 FOR_EACH_OBSERVER(history::VisitDatabaseObserver, visit_database_observers_,
1283 OnAddVisit(info)); 1273 OnAddVisit(info));
1284 } 1274 }
OLDNEW
« no previous file with comments | « chrome/browser/history/history_service.h ('k') | chrome/browser/history/history_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698