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

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

Issue 6990074: Change GetVisitCountToHost() to GetVisibleVisitCountToHost(), and restrict it to returning "user-... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/history/history.h ('k') | chrome/browser/history/history_backend.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 } 586 }
587 587
588 HistoryService::Handle HistoryService::QueryRedirectsTo( 588 HistoryService::Handle HistoryService::QueryRedirectsTo(
589 const GURL& to_url, 589 const GURL& to_url,
590 CancelableRequestConsumerBase* consumer, 590 CancelableRequestConsumerBase* consumer,
591 QueryRedirectsCallback* callback) { 591 QueryRedirectsCallback* callback) {
592 return Schedule(PRIORITY_NORMAL, &HistoryBackend::QueryRedirectsTo, consumer, 592 return Schedule(PRIORITY_NORMAL, &HistoryBackend::QueryRedirectsTo, consumer,
593 new history::QueryRedirectsRequest(callback), to_url); 593 new history::QueryRedirectsRequest(callback), to_url);
594 } 594 }
595 595
596 HistoryService::Handle HistoryService::GetVisitCountToHost( 596 HistoryService::Handle HistoryService::GetVisibleVisitCountToHost(
597 const GURL& url, 597 const GURL& url,
598 CancelableRequestConsumerBase* consumer, 598 CancelableRequestConsumerBase* consumer,
599 GetVisitCountToHostCallback* callback) { 599 GetVisibleVisitCountToHostCallback* callback) {
600 return Schedule(PRIORITY_UI, &HistoryBackend::GetVisitCountToHost, consumer, 600 return Schedule(PRIORITY_UI, &HistoryBackend::GetVisibleVisitCountToHost,
601 new history::GetVisitCountToHostRequest(callback), url); 601 consumer, new history::GetVisibleVisitCountToHostRequest(callback), url);
602 } 602 }
603 603
604 HistoryService::Handle HistoryService::QueryTopURLsAndRedirects( 604 HistoryService::Handle HistoryService::QueryTopURLsAndRedirects(
605 int result_count, 605 int result_count,
606 CancelableRequestConsumerBase* consumer, 606 CancelableRequestConsumerBase* consumer,
607 QueryTopURLsAndRedirectsCallback* callback) { 607 QueryTopURLsAndRedirectsCallback* callback) {
608 return Schedule(PRIORITY_NORMAL, &HistoryBackend::QueryTopURLsAndRedirects, 608 return Schedule(PRIORITY_NORMAL, &HistoryBackend::QueryTopURLsAndRedirects,
609 consumer, new history::QueryTopURLsAndRedirectsRequest(callback), 609 consumer, new history::QueryTopURLsAndRedirectsRequest(callback),
610 result_count); 610 result_count);
611 } 611 }
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 history::TopSites* ts = profile_->GetTopSitesWithoutCreating(); 813 history::TopSites* ts = profile_->GetTopSitesWithoutCreating();
814 if (ts) 814 if (ts)
815 ts->MigrateFromHistory(); 815 ts->MigrateFromHistory();
816 } 816 }
817 } 817 }
818 818
819 void HistoryService::OnTopSitesReady() { 819 void HistoryService::OnTopSitesReady() {
820 ScheduleAndForget(PRIORITY_NORMAL, 820 ScheduleAndForget(PRIORITY_NORMAL,
821 &HistoryBackend::MigrateThumbnailsDatabase); 821 &HistoryBackend::MigrateThumbnailsDatabase);
822 } 822 }
OLDNEW
« no previous file with comments | « chrome/browser/history/history.h ('k') | chrome/browser/history/history_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698