| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_FAVICON_IOS_WEB_FAVICON_DRIVER_H_ | 5 #ifndef COMPONENTS_FAVICON_IOS_WEB_FAVICON_DRIVER_H_ |
| 6 #define COMPONENTS_FAVICON_IOS_WEB_FAVICON_DRIVER_H_ | 6 #define COMPONENTS_FAVICON_IOS_WEB_FAVICON_DRIVER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/favicon/core/favicon_driver_impl.h" | 9 #include "components/favicon/core/favicon_driver_impl.h" |
| 10 #import "components/image_fetcher/ios/ios_image_data_fetcher_wrapper.h" | 10 #import "components/image_fetcher/ios/ios_image_data_fetcher_wrapper.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 public FaviconDriverImpl { | 25 public FaviconDriverImpl { |
| 26 public: | 26 public: |
| 27 static void CreateForWebState(web::WebState* web_state, | 27 static void CreateForWebState(web::WebState* web_state, |
| 28 FaviconService* favicon_service, | 28 FaviconService* favicon_service, |
| 29 history::HistoryService* history_service, | 29 history::HistoryService* history_service, |
| 30 bookmarks::BookmarkModel* bookmark_model); | 30 bookmarks::BookmarkModel* bookmark_model); |
| 31 | 31 |
| 32 // FaviconDriver implementation. | 32 // FaviconDriver implementation. |
| 33 void FetchFavicon(const GURL& url) override; | 33 void FetchFavicon(const GURL& url) override; |
| 34 gfx::Image GetFavicon() const override; | 34 gfx::Image GetFavicon() const override; |
| 35 bool FaviconIsValid() const override; | |
| 36 GURL GetActiveURL() override; | |
| 37 | 35 |
| 38 // FaviconHandler::Delegate implementation. | 36 // FaviconHandler::Delegate implementation. |
| 39 int DownloadImage(const GURL& url, | 37 int DownloadImage(const GURL& url, |
| 40 int max_image_size, | 38 int max_image_size, |
| 41 ImageDownloadCallback callback) override; | 39 ImageDownloadCallback callback) override; |
| 42 bool IsOffTheRecord() override; | 40 bool IsOffTheRecord() override; |
| 43 void OnFaviconUpdated( | 41 void OnFaviconUpdated( |
| 44 const GURL& page_url, | 42 const GURL& page_url, |
| 45 FaviconDriverObserver::NotificationIconType notification_icon_type, | 43 FaviconDriverObserver::NotificationIconType notification_icon_type, |
| 46 const GURL& icon_url, | 44 const GURL& icon_url, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 65 | 63 |
| 66 // Image Fetcher used to fetch favicon. | 64 // Image Fetcher used to fetch favicon. |
| 67 image_fetcher::IOSImageDataFetcherWrapper image_fetcher_; | 65 image_fetcher::IOSImageDataFetcherWrapper image_fetcher_; |
| 68 | 66 |
| 69 DISALLOW_COPY_AND_ASSIGN(WebFaviconDriver); | 67 DISALLOW_COPY_AND_ASSIGN(WebFaviconDriver); |
| 70 }; | 68 }; |
| 71 | 69 |
| 72 } // namespace favicon | 70 } // namespace favicon |
| 73 | 71 |
| 74 #endif // COMPONENTS_FAVICON_IOS_WEB_FAVICON_DRIVER_H_ | 72 #endif // COMPONENTS_FAVICON_IOS_WEB_FAVICON_DRIVER_H_ |
| OLD | NEW |