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

Unified Diff: components/favicon/core/favicon_driver.h

Issue 684983003: Add Observer in FaviconTabHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move setting active favicon to FaviconTabHelper Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/favicon/favicon_tab_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/favicon/core/favicon_driver.h
diff --git a/components/favicon/core/favicon_driver.h b/components/favicon/core/favicon_driver.h
index dadd43c12e7be7ca93db8eac4d5bacc0ddd44b09..88c89e071fab243e1c8f4540b4b4e63ff9353222 100644
--- a/components/favicon/core/favicon_driver.h
+++ b/components/favicon/core/favicon_driver.h
@@ -27,11 +27,6 @@ class FaviconDriver {
// is the only result. A |max_bitmap_size| of 0 means unlimited.
virtual int StartDownload(const GURL& url, int max_bitmap_size) = 0;
- // Notifies the driver that the favicon for the active entry was updated.
- // |icon_url_changed| is true if a favicon with a different icon URL has
- // been selected since the previous call to NotifyFaviconUpdated().
- virtual void NotifyFaviconUpdated(bool icon_url_changed) = 0;
-
// Returns whether the user is operating in an off-the-record context.
virtual bool IsOffTheRecord() = 0;
@@ -51,16 +46,12 @@ class FaviconDriver {
// URL otherwise.
virtual const GURL GetActiveURL() = 0;
- // Sets the bitmap of the current page's favicon. Requires GetActiveURL() to
- // be valid.
- virtual void SetActiveFaviconImage(gfx::Image image) = 0;
-
- // Sets the URL of the favicon's bitmap. Requires GetActiveURL() to be valid.
- virtual void SetActiveFaviconURL(GURL url) = 0;
-
- // Sets whether the page's favicon is valid (if false, the default favicon is
- // being used). Requires GetActiveURL() to be valid.
- virtual void SetActiveFaviconValidity(bool validity) = 0;
michaelbai 2014/10/30 19:22:51 Hey Scott, I am not sure these methods still neede
blundell 2014/10/31 06:53:42 jif@ is the right person to answer this question.
jif-google 2014/10/31 12:05:18 michaelbai> Since GetActiveFaviconValidity is used
michaelbai 2014/10/31 15:57:56 I don't know how you use the driver, this patch ad
jif-google 2014/10/31 16:51:30 Resolved offline. The conclusion is: we can remove
+ // Notifies the driver favicon |image| is available to use. |icon_url| is
+ // image's url, |update_active_favicon| indicates whether updating active
+ // favicon is needed.
+ virtual void OnFaviconAvailable(const gfx::Image& image,
sky 2014/10/30 21:33:49 You need to make it clear image is not necessarily
michaelbai 2014/10/31 23:21:27 Done.
+ const GURL& icon_url,
+ bool update_active_favicon) = 0;
};
#endif // COMPONENTS_FAVICON_CORE_FAVICON_DRIVER_H_
« no previous file with comments | « chrome/browser/favicon/favicon_tab_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698