| 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 "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "base/threading/sequenced_worker_pool.h" | 9 #include "base/threading/sequenced_worker_pool.h" |
| 10 #include "components/favicon/core/favicon_url.h" | 10 #include "components/favicon/core/favicon_url.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 FaviconDriverImpl(favicon_service, history_service, bookmark_model), | 134 FaviconDriverImpl(favicon_service, history_service, bookmark_model), |
| 135 image_fetcher_(web_state->GetBrowserState()->GetRequestContext(), | 135 image_fetcher_(web_state->GetBrowserState()->GetRequestContext(), |
| 136 web::WebThread::GetBlockingPool()) {} | 136 web::WebThread::GetBlockingPool()) {} |
| 137 | 137 |
| 138 WebFaviconDriver::~WebFaviconDriver() { | 138 WebFaviconDriver::~WebFaviconDriver() { |
| 139 } | 139 } |
| 140 | 140 |
| 141 void WebFaviconDriver::FaviconUrlUpdated( | 141 void WebFaviconDriver::FaviconUrlUpdated( |
| 142 const std::vector<web::FaviconURL>& candidates) { | 142 const std::vector<web::FaviconURL>& candidates) { |
| 143 DCHECK(!candidates.empty()); | 143 DCHECK(!candidates.empty()); |
| 144 OnUpdateFaviconURL(GetActiveURL(), FaviconURLsFromWebFaviconURLs(candidates)); | 144 OnUpdateCandidates(GetActiveURL(), FaviconURLsFromWebFaviconURLs(candidates)); |
| 145 } | 145 } |
| 146 | 146 |
| 147 } // namespace favicon | 147 } // namespace favicon |
| OLD | NEW |