| 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" |  | 
| 11 #include "ios/web/public/web_state/web_state_observer.h" | 10 #include "ios/web/public/web_state/web_state_observer.h" | 
| 12 #include "ios/web/public/web_state/web_state_user_data.h" | 11 #include "ios/web/public/web_state/web_state_user_data.h" | 
| 13 | 12 | 
| 14 namespace web { | 13 namespace web { | 
| 15 class WebState; | 14 class WebState; | 
| 16 } | 15 } | 
| 17 | 16 | 
| 18 namespace favicon { | 17 namespace favicon { | 
| 19 | 18 | 
| 20 // WebFaviconDriver is an implementation of FaviconDriver that listen to | 19 // WebFaviconDriver is an implementation of FaviconDriver that listen to | 
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 52                    bookmarks::BookmarkModel* bookmark_model); | 51                    bookmarks::BookmarkModel* bookmark_model); | 
| 53   ~WebFaviconDriver() override; | 52   ~WebFaviconDriver() override; | 
| 54 | 53 | 
| 55   // web::WebStateObserver implementation. | 54   // web::WebStateObserver implementation. | 
| 56   void FaviconUrlUpdated( | 55   void FaviconUrlUpdated( | 
| 57       const std::vector<web::FaviconURL>& candidates) override; | 56       const std::vector<web::FaviconURL>& candidates) override; | 
| 58 | 57 | 
| 59   // The URL passed to FetchFavicon(). | 58   // The URL passed to FetchFavicon(). | 
| 60   GURL fetch_favicon_url_; | 59   GURL fetch_favicon_url_; | 
| 61 | 60 | 
| 62   // Image Fetcher used to fetch favicon. |  | 
| 63   image_fetcher::IOSImageDataFetcherWrapper image_fetcher_; |  | 
| 64 |  | 
| 65   DISALLOW_COPY_AND_ASSIGN(WebFaviconDriver); | 61   DISALLOW_COPY_AND_ASSIGN(WebFaviconDriver); | 
| 66 }; | 62 }; | 
| 67 | 63 | 
| 68 }  // namespace favicon | 64 }  // namespace favicon | 
| 69 | 65 | 
| 70 #endif  // COMPONENTS_FAVICON_IOS_WEB_FAVICON_DRIVER_H_ | 66 #endif  // COMPONENTS_FAVICON_IOS_WEB_FAVICON_DRIVER_H_ | 
| OLD | NEW | 
|---|