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

Side by Side Diff: components/favicon_base/favicon_types.h

Issue 2347173002: Extend FaviconService to support fetching favicons from a Google server (Closed)
Patch Set: Requiring minimum_size Created 4 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_FAVICON_BASE_FAVICON_TYPES_H_ 5 #ifndef COMPONENTS_FAVICON_BASE_FAVICON_TYPES_H_
6 #define COMPONENTS_FAVICON_BASE_FAVICON_TYPES_H_ 6 #define COMPONENTS_FAVICON_BASE_FAVICON_TYPES_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // Indicates whether |bitmap_data| is expired. 62 // Indicates whether |bitmap_data| is expired.
63 bool expired; 63 bool expired;
64 64
65 // The bits of the bitmap. 65 // The bits of the bitmap.
66 scoped_refptr<base::RefCountedMemory> bitmap_data; 66 scoped_refptr<base::RefCountedMemory> bitmap_data;
67 67
68 // The pixel dimensions of |bitmap_data|. 68 // The pixel dimensions of |bitmap_data|.
69 gfx::Size pixel_size; 69 gfx::Size pixel_size;
70 70
71 // The pixel dimensions of the bitmap before it was resized to the desired
72 // size.
pkotwicz 2016/12/19 00:03:29 How about: "The pixel dimensions of the bitmap sto
jkrcal 2016/12/19 17:07:19 Done.
73 gfx::Size pixel_size_in_db;
74
71 // The URL of the containing favicon. 75 // The URL of the containing favicon.
72 GURL icon_url; 76 GURL icon_url;
73 77
74 // The icon type of the containing favicon. 78 // The icon type of the containing favicon.
75 IconType icon_type; 79 IconType icon_type;
76 }; 80 };
77 81
78 // Define type with same structure as FaviconRawBitmapResult for passing data to 82 // Define type with same structure as FaviconRawBitmapResult for passing data to
79 // HistoryBackend::SetFavicons(). 83 // HistoryBackend::SetFavicons().
80 typedef FaviconRawBitmapResult FaviconRawBitmapData; 84 typedef FaviconRawBitmapResult FaviconRawBitmapData;
(...skipping 14 matching lines...) Expand all
95 FaviconRawBitmapResult bitmap; 99 FaviconRawBitmapResult bitmap;
96 100
97 // The fallback icon style if a sufficiently large icon isn't available. This 101 // The fallback icon style if a sufficiently large icon isn't available. This
98 // uses the dominant color of a smaller icon as the background if available. 102 // uses the dominant color of a smaller icon as the background if available.
99 std::unique_ptr<FallbackIconStyle> fallback_icon_style; 103 std::unique_ptr<FallbackIconStyle> fallback_icon_style;
100 }; 104 };
101 105
102 } // namespace favicon_base 106 } // namespace favicon_base
103 107
104 #endif // COMPONENTS_FAVICON_BASE_FAVICON_TYPES_H_ 108 #endif // COMPONENTS_FAVICON_BASE_FAVICON_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698