| Index: components/favicon/ios/web_favicon_driver.h
|
| diff --git a/components/favicon/ios/web_favicon_driver.h b/components/favicon/ios/web_favicon_driver.h
|
| index c289748284a4a6573bb9142ad2f61570a54046d2..a389bed5fc49c0dfe74368809f9847507a8cd956 100644
|
| --- a/components/favicon/ios/web_favicon_driver.h
|
| +++ b/components/favicon/ios/web_favicon_driver.h
|
| @@ -29,6 +29,7 @@ class WebFaviconDriver : public web::WebStateObserver,
|
| bookmarks::BookmarkModel* bookmark_model);
|
|
|
| // FaviconDriver implementation.
|
| + void FetchFavicon(const GURL& url) override;
|
| void SaveFavicon() override;
|
| gfx::Image GetFavicon() const override;
|
| bool FaviconIsValid() const override;
|
| @@ -40,6 +41,7 @@ class WebFaviconDriver : public web::WebStateObserver,
|
| GURL GetActiveFaviconURL() override;
|
| void SetActiveFaviconURL(const GURL& url) override;
|
| void SetActiveFaviconImage(const gfx::Image& image) override;
|
| + bool ShouldSendFaviconAvailableNotifications() override;
|
|
|
| private:
|
| friend class web::WebStateUserData<WebFaviconDriver>;
|
| @@ -50,6 +52,9 @@ class WebFaviconDriver : public web::WebStateObserver,
|
| bookmarks::BookmarkModel* bookmark_model);
|
| ~WebFaviconDriver() override;
|
|
|
| + // Returns whether the active URL has changed since FetchFavicon() was called.
|
| + bool ActiveURLChangedSinceFetchFavicon();
|
| +
|
| // web::WebStateObserver implementation.
|
| void FaviconUrlUpdated(
|
| const std::vector<web::FaviconURL>& candidates) override;
|
| @@ -57,6 +62,9 @@ class WebFaviconDriver : public web::WebStateObserver,
|
| // Returns the active navigation entry's favicon.
|
| web::FaviconStatus& GetFaviconStatus();
|
|
|
| + // The URL passed to FetchFavicon().
|
| + GURL fetch_favicon_url_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(WebFaviconDriver);
|
| };
|
|
|
|
|