Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: components/favicon/ios/web_favicon_driver.h

Issue 2799273002: Add support to process favicons from Web Manifests (Closed)
Patch Set: Added comment. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 21 matching lines...) Expand all
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 GURL GetActiveURL() override; 36 GURL GetActiveURL() override;
37 37
38 // FaviconHandler::Delegate implementation. 38 // FaviconHandler::Delegate implementation.
39 int DownloadImage(const GURL& url, 39 int DownloadImage(const GURL& url,
40 int max_image_size, 40 int max_image_size,
41 ImageDownloadCallback callback) override; 41 ImageDownloadCallback callback) override;
42 void DownloadManifest(const GURL& url,
43 ManifestDownloadCallback callback) override;
42 bool IsOffTheRecord() override; 44 bool IsOffTheRecord() override;
43 void OnFaviconUpdated( 45 void OnFaviconUpdated(
44 const GURL& page_url, 46 const GURL& page_url,
45 FaviconDriverObserver::NotificationIconType notification_icon_type, 47 FaviconDriverObserver::NotificationIconType notification_icon_type,
46 const GURL& icon_url, 48 const GURL& icon_url,
47 bool icon_url_changed, 49 bool icon_url_changed,
48 const gfx::Image& image) override; 50 const gfx::Image& image) override;
49 51
50 private: 52 private:
51 friend class web::WebStateUserData<WebFaviconDriver>; 53 friend class web::WebStateUserData<WebFaviconDriver>;
(...skipping 13 matching lines...) Expand all
65 67
66 // Image Fetcher used to fetch favicon. 68 // Image Fetcher used to fetch favicon.
67 image_fetcher::IOSImageDataFetcherWrapper image_fetcher_; 69 image_fetcher::IOSImageDataFetcherWrapper image_fetcher_;
68 70
69 DISALLOW_COPY_AND_ASSIGN(WebFaviconDriver); 71 DISALLOW_COPY_AND_ASSIGN(WebFaviconDriver);
70 }; 72 };
71 73
72 } // namespace favicon 74 } // namespace favicon
73 75
74 #endif // COMPONENTS_FAVICON_IOS_WEB_FAVICON_DRIVER_H_ 76 #endif // COMPONENTS_FAVICON_IOS_WEB_FAVICON_DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698