favicon_url.h revision 7dbb3d5cf0c15f500944d211057644d6a2f37371
1// Copyright (c) 2011 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. 4 5#ifndef CONTENT_PUBLIC_COMMON_FAVICON_URL_ 6#define CONTENT_PUBLIC_COMMON_FAVICON_URL_ 7 8#include "content/common/content_export.h" 9#include "url/gurl.h" 10 11namespace content { 12 13// The favicon url from the render. 14struct CONTENT_EXPORT FaviconURL { 15 // The icon type in a page. The definition must be same as chrome::IconType. 16 enum IconType { 17 INVALID_ICON = 0x0, 18 FAVICON = 1 << 0, 19 TOUCH_ICON = 1 << 1, 20 TOUCH_PRECOMPOSED_ICON = 1 << 2 21 }; 22 23 FaviconURL(); 24 FaviconURL(const GURL& url, IconType type); 25 ~FaviconURL(); 26 27 // The url of the icon. 28 GURL icon_url; 29 30 // The type of the icon 31 IconType icon_type; 32}; 33 34} // namespace content 35 36#endif // CONTENT_PUBLIC_COMMON_FAVICON_URL_ 37