OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_COMMON_FAVICON_URL_ | 5 #ifndef CONTENT_PUBLIC_COMMON_FAVICON_URL_ |
6 #define CHROME_COMMON_FAVICON_URL_ | 6 #define CONTENT_PUBLIC_COMMON_FAVICON_URL_ |
7 | 7 |
| 8 #include "content/common/content_export.h" |
8 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
9 | 10 |
| 11 namespace content { |
| 12 |
10 // The favicon url from the render. | 13 // The favicon url from the render. |
11 struct FaviconURL { | 14 struct CONTENT_EXPORT FaviconURL { |
12 // The icon type in a page. The definition must be same as history::IconType. | 15 // The icon type in a page. The definition must be same as history::IconType. |
13 enum IconType { | 16 enum IconType { |
14 INVALID_ICON = 0x0, | 17 INVALID_ICON = 0x0, |
15 FAVICON = 1 << 0, | 18 FAVICON = 1 << 0, |
16 TOUCH_ICON = 1 << 1, | 19 TOUCH_ICON = 1 << 1, |
17 TOUCH_PRECOMPOSED_ICON = 1 << 2 | 20 TOUCH_PRECOMPOSED_ICON = 1 << 2 |
18 }; | 21 }; |
19 | 22 |
20 FaviconURL(); | 23 FaviconURL(); |
21 FaviconURL(const GURL& url, IconType type); | 24 FaviconURL(const GURL& url, IconType type); |
22 ~FaviconURL(); | 25 ~FaviconURL(); |
23 | 26 |
24 // The url of the icon. | 27 // The url of the icon. |
25 GURL icon_url; | 28 GURL icon_url; |
26 | 29 |
27 // The type of the icon | 30 // The type of the icon |
28 IconType icon_type; | 31 IconType icon_type; |
29 }; | 32 }; |
30 | 33 |
31 #endif // CHROME_COMMON_FAVICON_URL_ | 34 } // namespace content |
| 35 |
| 36 #endif // CONTENT_PUBLIC_COMMON_FAVICON_URL_ |
OLD | NEW |