blob: 765c292e07a16eff11935189042c3952aee79fc0 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_WEB_PUBLIC_FAVICON_URL_
#define IOS_WEB_PUBLIC_FAVICON_URL_
#include <vector>
#include "ui/gfx/geometry/size.h"
#include "url/gurl.h"
namespace web {
// The favicon url from the render.
struct FaviconURL {
// The icon type in a page. The definition must be same as
// favicon_base::IconType.
enum IconType {
INVALID_ICON = 0x0,
FAVICON = 1 << 0,
TOUCH_ICON = 1 << 1,
TOUCH_PRECOMPOSED_ICON = 1 << 2
};
FaviconURL();
FaviconURL(const GURL& url,
IconType type,
const std::vector<gfx::Size>& sizes);
FaviconURL(const FaviconURL& other);
~FaviconURL();
// The url of the icon.
GURL icon_url;
// The type of the icon
IconType icon_type;
// Icon's bitmaps' size
std::vector<gfx::Size> icon_sizes;
};
} // namespace web
#endif // IOS_WEB_PUBLIC_FAVICON_URL_