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" | 10 #import "components/image_fetcher/ios/ios_image_data_fetcher_wrapper.h" |
(...skipping 15 matching lines...) Expand all Loading... | |
26 public: | 26 public: |
27 static void CreateForWebState(web::WebState* web_state, | 27 static void CreateForWebState(web::WebState* web_state, |
28 FaviconService* favicon_service, | 28 FaviconService* favicon_service, |
29 history::HistoryService* history_service, | 29 history::HistoryService* history_service, |
30 bookmarks::BookmarkModel* bookmark_model); | 30 bookmarks::BookmarkModel* bookmark_model); |
31 | 31 |
32 // FaviconDriver implementation. | 32 // FaviconDriver implementation. |
33 void FetchFavicon(const GURL& url) override; | 33 void FetchFavicon(const GURL& url) override; |
34 gfx::Image GetFavicon() const override; | 34 gfx::Image GetFavicon() const override; |
35 bool FaviconIsValid() const override; | 35 bool FaviconIsValid() const override; |
36 int StartDownload(const GURL& url, int max_bitmap_size) override; | 36 GURL GetActiveURL() override; |
37 | |
38 // FaviconHandler::Delegate implementation. | |
39 int DownloadImage(const GURL& url, | |
40 int max_image_size, | |
41 ImageDownloadCallback callback) override; | |
pkotwicz
2017/02/22 02:37:54
Nit: Can you please reorder the functions in the .
mastiz
2017/02/23 21:55:54
Done.
| |
37 bool IsOffTheRecord() override; | 42 bool IsOffTheRecord() override; |
38 GURL GetActiveURL() override; | |
39 void OnFaviconUpdated( | 43 void OnFaviconUpdated( |
40 const GURL& page_url, | 44 const GURL& page_url, |
41 FaviconDriverObserver::NotificationIconType notification_icon_type, | 45 FaviconDriverObserver::NotificationIconType notification_icon_type, |
42 const GURL& icon_url, | 46 const GURL& icon_url, |
43 bool icon_url_changed, | 47 bool icon_url_changed, |
44 const gfx::Image& image) override; | 48 const gfx::Image& image) override; |
45 | 49 |
46 private: | 50 private: |
47 friend class web::WebStateUserData<WebFaviconDriver>; | 51 friend class web::WebStateUserData<WebFaviconDriver>; |
48 | 52 |
(...skipping 12 matching lines...) Expand all Loading... | |
61 | 65 |
62 // Image Fetcher used to fetch favicon. | 66 // Image Fetcher used to fetch favicon. |
63 image_fetcher::IOSImageDataFetcherWrapper image_fetcher_; | 67 image_fetcher::IOSImageDataFetcherWrapper image_fetcher_; |
64 | 68 |
65 DISALLOW_COPY_AND_ASSIGN(WebFaviconDriver); | 69 DISALLOW_COPY_AND_ASSIGN(WebFaviconDriver); |
66 }; | 70 }; |
67 | 71 |
68 } // namespace favicon | 72 } // namespace favicon |
69 | 73 |
70 #endif // COMPONENTS_FAVICON_IOS_WEB_FAVICON_DRIVER_H_ | 74 #endif // COMPONENTS_FAVICON_IOS_WEB_FAVICON_DRIVER_H_ |
OLD | NEW |