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

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

Issue 2691933004: Avoid cyclic dependency FaviconHandler<-->FaviconDriverImpl (Closed)
Patch Set: Addressed more comments. Created 3 years, 10 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 | « components/favicon/content/content_favicon_driver.cc ('k') | components/favicon/core/favicon_driver_impl.h » ('j') | 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 4cceb5a10e1fa31ec556598e982f744334c2c654..55c05c091f4e184fdba4ecf47243b60a4b7e0589 100644
--- a/components/favicon/core/favicon_driver.h
+++ b/components/favicon/core/favicon_driver.h
@@ -40,39 +40,10 @@ class FaviconDriver {
// Returns true if we have the favicon for the page.
virtual bool FaviconIsValid() const = 0;
- // Starts the download for the given favicon. When finished, the driver
- // will call OnDidDownloadFavicon() with the results.
- // Returns the unique id of the download request. The id will be passed
- // in OnDidDownloadFavicon().
- // Bitmaps with pixel sizes larger than |max_bitmap_size| are filtered out
- // from the bitmap results. If there are no bitmap results <=
- // |max_bitmap_size|, the smallest bitmap is resized to |max_bitmap_size| and
- // is the only result. A |max_bitmap_size| of 0 means unlimited.
- virtual int StartDownload(const GURL& url, int max_bitmap_size) = 0;
-
- // Returns whether the user is operating in an off-the-record context.
- virtual bool IsOffTheRecord() = 0;
-
- // Returns whether |url| is bookmarked.
- virtual bool IsBookmarked(const GURL& url) = 0;
-
// Returns the URL of the current page, if any. Returns an invalid URL
// otherwise.
virtual GURL GetActiveURL() = 0;
- // Notifies the driver that the favicon image has been updated.
- // See comment for FaviconDriverObserver::OnFaviconUpdated() for more details.
- virtual void OnFaviconUpdated(
- const GURL& page_url,
- FaviconDriverObserver::NotificationIconType notification_icon_type,
- const GURL& icon_url,
- bool icon_url_changed,
- const gfx::Image& image) = 0;
-
- // Returns whether the driver is waiting for a download to complete or for
- // data from the FaviconService. Reserved for testing.
- virtual bool HasPendingTasksForTest() = 0;
-
protected:
FaviconDriver();
virtual ~FaviconDriver();
@@ -84,7 +55,6 @@ class FaviconDriver {
bool icon_url_changed,
const gfx::Image& image);
-
private:
base::ObserverList<FaviconDriverObserver> observer_list_;
« no previous file with comments | « components/favicon/content/content_favicon_driver.cc ('k') | components/favicon/core/favicon_driver_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698