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 #include "components/favicon/ios/web_favicon_driver.h" | 5 #include "components/favicon/ios/web_favicon_driver.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "components/favicon/core/favicon_url.h" | 8 #include "components/favicon/core/favicon_url.h" |
9 #include "components/favicon/ios/favicon_url_util.h" | 9 #include "components/favicon/ios/favicon_url_util.h" |
10 #include "ios/web/public/browser_state.h" | 10 #include "ios/web/public/browser_state.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 FaviconService* favicon_service, | 106 FaviconService* favicon_service, |
107 history::HistoryService* history_service, | 107 history::HistoryService* history_service, |
108 bookmarks::BookmarkModel* bookmark_model) | 108 bookmarks::BookmarkModel* bookmark_model) |
109 : web::WebStateObserver(web_state), | 109 : web::WebStateObserver(web_state), |
110 FaviconDriverImpl(favicon_service, history_service, bookmark_model) { | 110 FaviconDriverImpl(favicon_service, history_service, bookmark_model) { |
111 } | 111 } |
112 | 112 |
113 WebFaviconDriver::~WebFaviconDriver() { | 113 WebFaviconDriver::~WebFaviconDriver() { |
114 } | 114 } |
115 | 115 |
116 void WebFaviconDriver::FaviconURLUpdated( | 116 void WebFaviconDriver::FaviconUrlUpdated( |
117 const std::vector<web::FaviconURL>& candidates) { | 117 const std::vector<web::FaviconURL>& candidates) { |
118 DCHECK(!candidates.empty()); | 118 DCHECK(!candidates.empty()); |
119 OnUpdateFaviconURL(FaviconURLsFromWebFaviconURLs(candidates)); | 119 OnUpdateFaviconURL(FaviconURLsFromWebFaviconURLs(candidates)); |
120 } | 120 } |
121 | 121 |
122 } // namespace favicon | 122 } // namespace favicon |
OLD | NEW |