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 CHROME_COMMON_FAVICON_URL_ 6#define CHROME_COMMON_FAVICON_URL_ 7#pragma once 8 9#include "googleurl/src/gurl.h" 10 11// The favicon url from the render. 12struct FaviconURL { 13 // The icon type in a page. The definition must be same as history::IconType. 14 enum IconType { 15 INVALID_ICON = 0x0, 16 FAVICON = 1 << 0, 17 TOUCH_ICON = 1 << 1, 18 TOUCH_PRECOMPOSED_ICON = 1 << 2 19 }; 20 21 FaviconURL(); 22 FaviconURL(const GURL& url, IconType type); 23 ~FaviconURL(); 24 25 // The url of the icon. 26 GURL icon_url; 27 28 // The type of the icon 29 IconType icon_type; 30}; 31 32#endif // CHROME_COMMON_FAVICON_URL_ 33