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

Unified Diff: chrome/browser/favicon/favicon_service.h

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: Don't use COUNT(*) for existence test 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/favicon/favicon_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/favicon/favicon_service.h
diff --git a/chrome/browser/favicon/favicon_service.h b/chrome/browser/favicon/favicon_service.h
index 4fb313b3531c6fe5beed118976ce5eeee230f303..252ca448decef7984e83d81ba5ff8a5b1e7d8504 100644
--- a/chrome/browser/favicon/favicon_service.h
+++ b/chrome/browser/favicon/favicon_service.h
@@ -82,6 +82,13 @@ class FaviconService : public CancelableRequestProvider {
// Marks all types of favicon for the page as being out of date.
void SetFaviconOutOfDateForPage(const GURL& page_url);
+ // Clone a favicon from an existing page. This associates the favicon from
sky 2011/11/16 17:26:00 Clarify this clones all icons, not just the favico
groby-ooo-7-16 2011/11/17 00:37:55 Done.
+ // |old_page_url| with |new_page_url|, provided |new_page_url| has no
+ // recorded association.
+ // Needed if you want to declare favicons (tentatively) in advance, before a
+ // page is ever visited.
+ void CloneFavicon(const GURL& old_page_url, const GURL& new_page_url);
sky 2011/11/16 17:26:00 This is worrisome. There's nothing stopping someon
groby-ooo-7-16 2011/11/17 00:37:55 I'm confused - how is that any more of a security
sky 2011/11/17 04:49:01 I wasn't worried about the attack risk (as you say
+
// Allows the importer to set many favicons for many pages at once. The pages
// must exist, any favicon sets for unknown pages will be discarded. Existing
// favicons will not be overwritten.
« no previous file with comments | « no previous file | chrome/browser/favicon/favicon_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698