| 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_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 Profile* profile_; | 54 Profile* profile_; |
| 55 CancelableRequestConsumerT<int, 0> cancelable_consumer_; | 55 CancelableRequestConsumerT<int, 0> cancelable_consumer_; |
| 56 | 56 |
| 57 // Map from request ID to size requested (in pixels). TODO(estade): Get rid of | 57 // Map from request ID to size requested (in pixels). TODO(estade): Get rid of |
| 58 // this map when we properly support multiple favicon sizes. | 58 // this map when we properly support multiple favicon sizes. |
| 59 std::map<int, int> request_size_map_; | 59 std::map<int, int> request_size_map_; |
| 60 | 60 |
| 61 // Raw PNG representation of the favicon to show when the favicon | 61 // Raw PNG representation of the favicon to show when the favicon |
| 62 // database doesn't have a favicon for a webpage. | 62 // database doesn't have a favicon for a webpage. |
| 63 // 16x16 | 63 // 16x16 |
| 64 scoped_refptr<RefCountedMemory> default_favicon_; | 64 scoped_refptr<base::RefCountedMemory> default_favicon_; |
| 65 // 32x32 | 65 // 32x32 |
| 66 scoped_refptr<RefCountedMemory> default_favicon_large_; | 66 scoped_refptr<base::RefCountedMemory> default_favicon_large_; |
| 67 | 67 |
| 68 // The history::IconTypes of icon that this FaviconSource handles. | 68 // The history::IconTypes of icon that this FaviconSource handles. |
| 69 const int icon_types_; | 69 const int icon_types_; |
| 70 | 70 |
| 71 DISALLOW_COPY_AND_ASSIGN(FaviconSource); | 71 DISALLOW_COPY_AND_ASSIGN(FaviconSource); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 #endif // CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_ | 74 #endif // CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_ |
| OLD | NEW |