| 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_FILEICON_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "chrome/browser/icon_manager.h" | 11 #include "chrome/browser/icon_manager.h" |
| 12 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 12 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
| 13 | 13 |
| 14 class GURL; | |
| 15 class RefCountedBytes; | 14 class RefCountedBytes; |
| 16 | 15 |
| 17 namespace gfx { | 16 namespace gfx { |
| 18 class Image; | 17 class Image; |
| 19 } | 18 } |
| 20 | 19 |
| 21 // FileIconSource is the gateway between network-level chrome: | 20 // FileIconSource is the gateway between network-level chrome: |
| 22 // requests for favicons and the history backend that serves these. | 21 // requests for favicons and the history backend that serves these. |
| 23 class FileIconSource : public ChromeURLDataManager::DataSource { | 22 class FileIconSource : public ChromeURLDataManager::DataSource { |
| 24 public: | 23 public: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 42 | 41 |
| 43 CancelableRequestConsumerT<int, 0> cancelable_consumer_; | 42 CancelableRequestConsumerT<int, 0> cancelable_consumer_; |
| 44 | 43 |
| 45 // Raw PNG representation of the favicon to show when the favicon | 44 // Raw PNG representation of the favicon to show when the favicon |
| 46 // database doesn't have a favicon for a webpage. | 45 // database doesn't have a favicon for a webpage. |
| 47 scoped_refptr<RefCountedBytes> default_favicon_; | 46 scoped_refptr<RefCountedBytes> default_favicon_; |
| 48 | 47 |
| 49 DISALLOW_COPY_AND_ASSIGN(FileIconSource); | 48 DISALLOW_COPY_AND_ASSIGN(FileIconSource); |
| 50 }; | 49 }; |
| 51 #endif // CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_H_ | 50 #endif // CHROME_BROWSER_UI_WEBUI_FILEICON_SOURCE_H_ |
| OLD | NEW |