OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_DOM_DISTILLER_DISTILLER_FAVICON_DRIVER_H_ |
| 6 #define IOS_CHROME_BROWSER_DOM_DISTILLER_DISTILLER_FAVICON_DRIVER_H_ |
| 7 |
| 8 #include "components/favicon/ios/web_favicon_driver.h" |
| 9 |
| 10 class DistillerFaviconDriver : public favicon::WebFaviconDriver { |
| 11 public: |
| 12 static void CreateForWebState(web::WebState* web_state, |
| 13 favicon::FaviconService* favicon_service, |
| 14 history::HistoryService* history_service, |
| 15 bookmarks::BookmarkModel* bookmark_model, |
| 16 const GURL& page_url); |
| 17 |
| 18 // web::WebStateObserver implementation. |
| 19 void FaviconUrlUpdated( |
| 20 const std::vector<web::FaviconURL>& candidates) override; |
| 21 |
| 22 private: |
| 23 friend class web::WebStateUserData<DistillerFaviconDriver>; |
| 24 |
| 25 DistillerFaviconDriver(web::WebState* web_state, |
| 26 favicon::FaviconService* favicon_service, |
| 27 history::HistoryService* history_service, |
| 28 bookmarks::BookmarkModel* bookmark_model, |
| 29 const GURL& page_url); |
| 30 ~DistillerFaviconDriver() override; |
| 31 |
| 32 GURL url_; |
| 33 }; |
| 34 |
| 35 #endif // IOS_CHROME_BROWSER_DOM_DISTILLER_DISTILLER_FAVICON_DRIVER_H_ |
OLD | NEW |