Index: ios/web/public/favicon_url.h |
diff --git a/ios/web/public/favicon_url.h b/ios/web/public/favicon_url.h |
index 765c292e07a16eff11935189042c3952aee79fc0..29ec6350a680c01687f8452ae9a3e0188035abc6 100644 |
--- a/ios/web/public/favicon_url.h |
+++ b/ios/web/public/favicon_url.h |
@@ -10,6 +10,10 @@ |
#include "ui/gfx/geometry/size.h" |
#include "url/gurl.h" |
+namespace base { |
+class ListValue; |
+} |
+ |
namespace web { |
// The favicon url from the render. |
@@ -40,6 +44,11 @@ struct FaviconURL { |
std::vector<gfx::Size> icon_sizes; |
}; |
+// Extract the favicons stored in |favicons| using the format: [ {"href": |
+// the_url, "rel": favicon_type}, ...] and store them in |result_urls|. |
+bool ExtractFaviconURL(base::ListValue* favicons, |
+ std::vector<web::FaviconURL>& result_urls); |
+ |
} // namespace web |
#endif // IOS_WEB_PUBLIC_FAVICON_URL_ |