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 23 matching lines...) Expand all Loading... |
34 // FaviconDriver implementation. | 34 // FaviconDriver implementation. |
35 void FetchFavicon(const GURL& url) override; | 35 void FetchFavicon(const GURL& url) override; |
36 gfx::Image GetFavicon() const override; | 36 gfx::Image GetFavicon() const override; |
37 bool FaviconIsValid() const override; | 37 bool FaviconIsValid() const override; |
38 GURL GetActiveURL() override; | 38 GURL GetActiveURL() override; |
39 | 39 |
40 // FaviconHandler::Delegate implementation. | 40 // FaviconHandler::Delegate implementation. |
41 int DownloadImage(const GURL& url, | 41 int DownloadImage(const GURL& url, |
42 int max_image_size, | 42 int max_image_size, |
43 ImageDownloadCallback callback) override; | 43 ImageDownloadCallback callback) override; |
| 44 void DownloadManifest(const GURL& url, |
| 45 ManifestDownloadCallback callback) override; |
44 bool IsOffTheRecord() override; | 46 bool IsOffTheRecord() override; |
45 void OnFaviconUpdated( | 47 void OnFaviconUpdated( |
46 const GURL& page_url, | 48 const GURL& page_url, |
47 FaviconDriverObserver::NotificationIconType notification_icon_type, | 49 FaviconDriverObserver::NotificationIconType notification_icon_type, |
48 const GURL& icon_url, | 50 const GURL& icon_url, |
49 bool icon_url_changed, | 51 bool icon_url_changed, |
50 const gfx::Image& image) override; | 52 const gfx::Image& image) override; |
51 | 53 |
52 private: | 54 private: |
53 friend class web::WebStateUserData<WebFaviconDriver>; | 55 friend class web::WebStateUserData<WebFaviconDriver>; |
(...skipping 12 matching lines...) Expand all Loading... |
66 | 68 |
67 // Image Fetcher used to fetch favicon. | 69 // Image Fetcher used to fetch favicon. |
68 image_fetcher::IOSImageDataFetcherWrapper image_fetcher_; | 70 image_fetcher::IOSImageDataFetcherWrapper image_fetcher_; |
69 | 71 |
70 DISALLOW_COPY_AND_ASSIGN(WebFaviconDriver); | 72 DISALLOW_COPY_AND_ASSIGN(WebFaviconDriver); |
71 }; | 73 }; |
72 | 74 |
73 } // namespace favicon | 75 } // namespace favicon |
74 | 76 |
75 #endif // COMPONENTS_FAVICON_IOS_WEB_FAVICON_DRIVER_H_ | 77 #endif // COMPONENTS_FAVICON_IOS_WEB_FAVICON_DRIVER_H_ |
OLD | NEW |