X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcomponents%2Ffavicon%2Fcore%2Ffavicon_driver.h;h=fc5c84c32f05aecb8e25e94d93324442e5c9efe5;hb=1afa4dd80ef85af7c90efaea6959db1d92330844;hp=dadd43c12e7be7ca93db8eac4d5bacc0ddd44b09;hpb=90762837333c13ccf56f2ad88e4481fc71e8d281;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/components/favicon/core/favicon_driver.h b/src/components/favicon/core/favicon_driver.h index dadd43c..fc5c84c 100644 --- a/src/components/favicon/core/favicon_driver.h +++ b/src/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,13 @@ 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; + // Notifies the driver a favicon image is available. |image| is not + // necessarily 16x16. |icon_url| is the url the image is from. If + // |is_active_favicon| is true the image corresponds to the favicon + // (possibly empty) of the page. + virtual void OnFaviconAvailable(const gfx::Image& image, + const GURL& icon_url, + bool is_active_favicon) = 0; }; #endif // COMPONENTS_FAVICON_CORE_FAVICON_DRIVER_H_