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

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

Issue 228783002: Moves knowledge of Profile out of FaviconHandler, into FaviconTabHelper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FAVICON_3
Patch Set: Rebase. Created 6 years, 8 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 | « no previous file | chrome/browser/favicon/favicon_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/favicon/favicon_handler.h
diff --git a/chrome/browser/favicon/favicon_handler.h b/chrome/browser/favicon/favicon_handler.h
index e25620af426ef6a492c8c743e22bc8c37ec121b4..ea1154a173eac45bdea74bd7d5b33cf4ecc2f0f3 100644
--- a/chrome/browser/favicon/favicon_handler.h
+++ b/chrome/browser/favicon/favicon_handler.h
@@ -19,6 +19,7 @@
#include "ui/gfx/image/image.h"
#include "url/gurl.h"
+class FaviconClient;
class FaviconHandlerDelegate;
class Profile;
class SkBitmap;
@@ -84,6 +85,7 @@ class FaviconHandler {
};
FaviconHandler(Profile* profile,
+ FaviconClient* client,
FaviconHandlerDelegate* delegate,
Type icon_type);
virtual ~FaviconHandler();
@@ -152,8 +154,6 @@ class FaviconHandler {
chrome::IconType icon_type,
const gfx::Image& image);
- virtual FaviconService* GetFaviconService();
-
// Returns true if the favicon should be saved.
virtual bool ShouldSaveFavicon(const GURL& url);
@@ -286,6 +286,9 @@ class FaviconHandler {
// The Profile associated with this handler.
Profile* profile_;
+ // The client which implements embedder-specific Favicon operations.
+ FaviconClient* client_; // weak
+
// This handler's delegate.
FaviconHandlerDelegate* delegate_; // weak
« no previous file with comments | « no previous file | chrome/browser/favicon/favicon_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698