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

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

Issue 684983003: Add Observer in FaviconTabHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: chrome/browser/favicon/favicon_handler.h
diff --git a/chrome/browser/favicon/favicon_handler.h b/chrome/browser/favicon/favicon_handler.h
index 46a507ebd6b9de5f264a824799d43a0cc82e6b19..9592731ecd04957d8d9623cdf1e532ccbb3ec9fe 100644
--- a/chrome/browser/favicon/favicon_handler.h
+++ b/chrome/browser/favicon/favicon_handler.h
@@ -148,11 +148,6 @@ class FaviconHandler {
// Returns true if the favicon should be saved.
virtual bool ShouldSaveFavicon(const GURL& url);
- // 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);
-
private:
friend class TestFaviconHandler; // For testing
@@ -226,10 +221,14 @@ class FaviconHandler {
const gfx::Image& image,
favicon_base::IconType icon_type);
- // Sets the favicon's data.
- void SetFaviconOnActivePage(const std::vector<
- favicon_base::FaviconRawBitmapResult>& favicon_bitmap_results);
- void SetFaviconOnActivePage(const GURL& icon_url, const gfx::Image& image);
+ // Notifies driver favicon available.
sky 2014/11/04 18:11:43 driver->|driver_|
michaelbai 2014/11/04 19:26:57 Done.
+ void NotifyFaviconAvailable(
+ const std::vector<favicon_base::FaviconRawBitmapResult>&
+ favicon_bitmap_results,
+ bool update_active_favicon);
sky 2014/11/04 18:11:43 Document what update_active_favicon. It's ok to sa
michaelbai 2014/11/04 19:26:57 Done.
+ void NotifyFaviconAvailable(const GURL& icon_url,
+ const gfx::Image& image,
+ bool update_active_favicon);
// Return the current candidate if any.
favicon::FaviconURL* current_candidate() {
« no previous file with comments | « no previous file | chrome/browser/favicon/favicon_handler.cc » ('j') | chrome/browser/favicon/favicon_tab_helper.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698