| 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 "components/favicon/core/favicon_driver_impl.h" | 8 #include "components/favicon/core/favicon_driver_impl.h" |
| 9 #include "ios/web/public/web_state/web_state_observer.h" | 9 #include "ios/web/public/web_state/web_state_observer.h" |
| 10 #include "ios/web/public/web_state/web_state_user_data.h" | 10 #include "ios/web/public/web_state/web_state_user_data.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 private: | 45 private: |
| 46 friend class web::WebStateUserData<WebFaviconDriver>; | 46 friend class web::WebStateUserData<WebFaviconDriver>; |
| 47 | 47 |
| 48 WebFaviconDriver(web::WebState* web_state, | 48 WebFaviconDriver(web::WebState* web_state, |
| 49 FaviconService* favicon_service, | 49 FaviconService* favicon_service, |
| 50 history::HistoryService* history_service, | 50 history::HistoryService* history_service, |
| 51 bookmarks::BookmarkModel* bookmark_model); | 51 bookmarks::BookmarkModel* bookmark_model); |
| 52 ~WebFaviconDriver() override; | 52 ~WebFaviconDriver() override; |
| 53 | 53 |
| 54 // web::WebStateObserver implementation. | 54 // web::WebStateObserver implementation. |
| 55 void FaviconURLUpdated( | 55 void FaviconUrlUpdated( |
| 56 const std::vector<web::FaviconURL>& candidates) override; | 56 const std::vector<web::FaviconURL>& candidates) override; |
| 57 | 57 |
| 58 // Returns the active navigation entry's favicon. | 58 // Returns the active navigation entry's favicon. |
| 59 web::FaviconStatus& GetFaviconStatus(); | 59 web::FaviconStatus& GetFaviconStatus(); |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(WebFaviconDriver); | 61 DISALLOW_COPY_AND_ASSIGN(WebFaviconDriver); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace favicon | 64 } // namespace favicon |
| 65 | 65 |
| 66 #endif // COMPONENTS_FAVICON_IOS_WEB_FAVICON_DRIVER_H_ | 66 #endif // COMPONENTS_FAVICON_IOS_WEB_FAVICON_DRIVER_H_ |
| OLD | NEW |