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

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

Issue 8469018: Provide assumed favicon for intents if service provider page was never visited. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 page_url, icon_url, 490 page_url, icon_url,
491 scoped_refptr<RefCountedMemory>(new RefCountedBytes(image_data)), 491 scoped_refptr<RefCountedMemory>(new RefCountedBytes(image_data)),
492 icon_type); 492 icon_type);
493 } 493 }
494 494
495 void HistoryService::SetFaviconOutOfDateForPage(const GURL& page_url) { 495 void HistoryService::SetFaviconOutOfDateForPage(const GURL& page_url) {
496 ScheduleAndForget(PRIORITY_NORMAL, 496 ScheduleAndForget(PRIORITY_NORMAL,
497 &HistoryBackend::SetFaviconOutOfDateForPage, page_url); 497 &HistoryBackend::SetFaviconOutOfDateForPage, page_url);
498 } 498 }
499 499
500 void HistoryService::CloneFavicon(const GURL& old_page_url,
501 const GURL& new_page_url) {
502 ScheduleAndForget(PRIORITY_NORMAL, &HistoryBackend::CloneFavicon,
503 old_page_url, new_page_url);
504 }
505
500 void HistoryService::SetImportedFavicons( 506 void HistoryService::SetImportedFavicons(
501 const std::vector<history::ImportedFaviconUsage>& favicon_usage) { 507 const std::vector<history::ImportedFaviconUsage>& favicon_usage) {
502 ScheduleAndForget(PRIORITY_NORMAL, 508 ScheduleAndForget(PRIORITY_NORMAL,
503 &HistoryBackend::SetImportedFavicons, favicon_usage); 509 &HistoryBackend::SetImportedFavicons, favicon_usage);
504 } 510 }
505 511
506 void HistoryService::IterateURLs(URLEnumerator* enumerator) { 512 void HistoryService::IterateURLs(URLEnumerator* enumerator) {
507 ScheduleAndForget(PRIORITY_NORMAL, &HistoryBackend::IterateURLs, enumerator); 513 ScheduleAndForget(PRIORITY_NORMAL, &HistoryBackend::IterateURLs, enumerator);
508 } 514 }
509 515
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 history::TopSites* ts = profile_->GetTopSitesWithoutCreating(); 850 history::TopSites* ts = profile_->GetTopSitesWithoutCreating();
845 if (ts) 851 if (ts)
846 ts->MigrateFromHistory(); 852 ts->MigrateFromHistory();
847 } 853 }
848 } 854 }
849 855
850 void HistoryService::OnTopSitesReady() { 856 void HistoryService::OnTopSitesReady() {
851 ScheduleAndForget(PRIORITY_NORMAL, 857 ScheduleAndForget(PRIORITY_NORMAL,
852 &HistoryBackend::MigrateThumbnailsDatabase); 858 &HistoryBackend::MigrateThumbnailsDatabase);
853 } 859 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698