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

Side by Side Diff: content/public/browser/favicon_status.h

Issue 10837090: Change return type of FaviconTabHelper::GetFavicon() to gfx::Image. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_FAVICON_STATUS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_FAVICON_STATUS_H_
6 #define CONTENT_PUBLIC_BROWSER_FAVICON_STATUS_H_ 6 #define CONTENT_PUBLIC_BROWSER_FAVICON_STATUS_H_
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 "ui/gfx/image/image.h" 10 #include "ui/gfx/image/image.h"
11 #include "third_party/skia/include/core/SkBitmap.h" 11 #include "third_party/skia/include/core/SkBitmap.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // Collects the favicon related information for a NavigationEntry. 15 // Collects the favicon related information for a NavigationEntry.
16 struct CONTENT_EXPORT FaviconStatus { 16 struct CONTENT_EXPORT FaviconStatus {
17 FaviconStatus(); 17 FaviconStatus();
18 18
19 // Returns 1x resolution of image. This function should eventually go away.
20 SkBitmap AsBitmap() const;
21
22 // Indicates whether we've gotten an official favicon for the page, or are 19 // Indicates whether we've gotten an official favicon for the page, or are
23 // just using the default favicon. 20 // just using the default favicon.
24 bool valid; 21 bool valid;
25 22
26 // The URL of the favicon which was used to load it off the web. 23 // The URL of the favicon which was used to load it off the web.
27 GURL url; 24 GURL url;
28 25
29 // The favicon bitmap for the page. If the favicon has not been explicitly 26 // The favicon bitmap for the page. If the favicon has not been explicitly
30 // set or it empty, it will return the default favicon. Note that this is 27 // set or it empty, it will return the default favicon. Note that this is
31 // loaded asynchronously, so even if the favicon URL is valid we may return 28 // loaded asynchronously, so even if the favicon URL is valid we may return
32 // the default favicon if we haven't gotten the data yet. 29 // the default favicon if we haven't gotten the data yet.
33 gfx::Image image; 30 gfx::Image image;
34 31
35 // Copy and assignment is explicitly allowed for this struct. 32 // Copy and assignment is explicitly allowed for this struct.
36 }; 33 };
37 34
38 } // namespace content 35 } // namespace content
39 36
40 #endif // CONTENT_PUBLIC_BROWSER_FAVICON_STATUS_H_ 37 #endif // CONTENT_PUBLIC_BROWSER_FAVICON_STATUS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc ('k') | content/public/browser/favicon_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698