Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ios / web / public / favicon_url.h
blob762ce852242d8f1790e753105232ff342c970ac1
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef IOS_WEB_PUBLIC_FAVICON_URL_
6 #define IOS_WEB_PUBLIC_FAVICON_URL_
8 #include <vector>
10 #include "ui/gfx/geometry/size.h"
11 #include "url/gurl.h"
13 namespace web {
15 // The favicon url from the render.
16 struct FaviconURL {
17 // The icon type in a page. The definition must be same as
18 // favicon_base::IconType.
19 enum IconType {
20 INVALID_ICON = 0x0,
21 FAVICON = 1 << 0,
22 TOUCH_ICON = 1 << 1,
23 TOUCH_PRECOMPOSED_ICON = 1 << 2
26 FaviconURL();
27 FaviconURL(const GURL& url,
28 IconType type,
29 const std::vector<gfx::Size>& sizes);
30 ~FaviconURL();
32 // The url of the icon.
33 GURL icon_url;
35 // The type of the icon
36 IconType icon_type;
38 // Icon's bitmaps' size
39 std::vector<gfx::Size> icon_sizes;
42 } // namespace web
44 #endif // IOS_WEB_PUBLIC_FAVICON_URL_