Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: content/public/common/favicon_url.h

Issue 12780024: Split FaviconHelper in two: ImageLoadingHelper and FaviconHelper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 CONTENT_PUBLIC_COMMON_FAVICON_URL_ 5 #ifndef CONTENT_PUBLIC_COMMON_FAVICON_URL_
6 #define CONTENT_PUBLIC_COMMON_FAVICON_URL_ 6 #define CONTENT_PUBLIC_COMMON_FAVICON_URL_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h"
10 11
11 namespace content { 12 namespace content {
12 13
13 // The favicon url from the render. 14 // The favicon url from the render.
14 struct CONTENT_EXPORT FaviconURL { 15 struct CONTENT_EXPORT FaviconURL {
15 // The icon type in a page. The definition must be same as history::IconType. 16 // The icon type in a page. The definition must be same as history::IconType.
16 enum IconType { 17 enum IconType {
17 INVALID_ICON = 0x0, 18 INVALID_ICON = 0x0,
18 FAVICON = 1 << 0, 19 FAVICON = 1 << 0,
19 TOUCH_ICON = 1 << 1, 20 TOUCH_ICON = 1 << 1,
20 TOUCH_PRECOMPOSED_ICON = 1 << 2 21 TOUCH_PRECOMPOSED_ICON = 1 << 2
21 }; 22 };
22 23
23 FaviconURL(); 24 FaviconURL();
24 FaviconURL(const GURL& url, IconType type); 25 FaviconURL(const GURL& url, IconType type);
25 ~FaviconURL(); 26 ~FaviconURL();
26 27
28 static IconType ToFaviconType(WebKit::WebIconURL::Type type);
jam 2013/03/21 01:14:51 this is only called in render_view_impl.cc. so no
Dmitry Titov 2013/03/27 22:41:13 Done.
29
27 // The url of the icon. 30 // The url of the icon.
28 GURL icon_url; 31 GURL icon_url;
29 32
30 // The type of the icon 33 // The type of the icon
31 IconType icon_type; 34 IconType icon_type;
32 }; 35 };
33 36
34 } // namespace content 37 } // namespace content
35 38
36 #endif // CONTENT_PUBLIC_COMMON_FAVICON_URL_ 39 #endif // CONTENT_PUBLIC_COMMON_FAVICON_URL_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698