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

Unified Diff: ios/web/public/favicon_url.h

Issue 2529283002: Save favicon during reading list distillation (Closed)
Patch Set: Add a comment Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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,
Eugene But (OOO till 7-30) 2016/11/30 18:51:31 Do we need this as a part of public API? WebStateO
+ std::vector<web::FaviconURL>& result_urls);
kkhorimoto 2016/11/28 23:48:26 The style guide dictates that out-parameters shoul
+
} // namespace web
#endif // IOS_WEB_PUBLIC_FAVICON_URL_

Powered by Google App Engine
This is Rietveld 408576698