| 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 <string> | 10 #include <string> |
| 10 | 11 |
| 11 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 13 #include "chrome/browser/favicon/favicon_service.h" | 14 #include "chrome/browser/favicon/favicon_service.h" |
| 14 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 15 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
| 15 | 16 |
| 16 class GURL; | |
| 17 class Profile; | 17 class Profile; |
| 18 | 18 |
| 19 // FaviconSource is the gateway between network-level chrome: | 19 // FaviconSource is the gateway between network-level chrome: |
| 20 // requests for favicons and the history backend that serves these. | 20 // requests for favicons and the history backend that serves these. |
| 21 class FaviconSource : public ChromeURLDataManager::DataSource { | 21 class FaviconSource : public ChromeURLDataManager::DataSource { |
| 22 public: | 22 public: |
| 23 // Defines the type of icon the FaviconSource will provide. | 23 // Defines the type of icon the FaviconSource will provide. |
| 24 enum IconType { | 24 enum IconType { |
| 25 FAVICON, | 25 FAVICON, |
| 26 // Any available icon in the priority of TOUCH_ICON_PRECOMPOSED, TOUCH_ICON, | 26 // Any available icon in the priority of TOUCH_ICON_PRECOMPOSED, TOUCH_ICON, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // 32x32 | 65 // 32x32 |
| 66 scoped_refptr<RefCountedMemory> default_favicon_large_; | 66 scoped_refptr<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 |