| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_DOM_UI_FILEICON_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_FILEICON_SOURCE_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_FILEICON_SOURCE_H_ | 6 #define CHROME_BROWSER_DOM_UI_FILEICON_SOURCE_H_ |
| 7 | 7 |
| 8 #include <string> |
| 9 |
| 8 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| 9 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 11 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
| 10 #include "chrome/browser/icon_manager.h" | 12 #include "chrome/browser/icon_manager.h" |
| 11 | 13 |
| 12 class GURL; | 14 class GURL; |
| 13 | 15 |
| 14 // FileIconSource is the gateway between network-level chrome: | 16 // FileIconSource is the gateway between network-level chrome: |
| 15 // requests for favicons and the history backend that serves these. | 17 // requests for favicons and the history backend that serves these. |
| 16 class FileIconSource : public ChromeURLDataManager::DataSource { | 18 class FileIconSource : public ChromeURLDataManager::DataSource { |
| 17 public: | 19 public: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 35 private: | 37 private: |
| 36 CancelableRequestConsumerT<int, 0> cancelable_consumer_; | 38 CancelableRequestConsumerT<int, 0> cancelable_consumer_; |
| 37 | 39 |
| 38 // Raw PNG representation of the favicon to show when the favicon | 40 // Raw PNG representation of the favicon to show when the favicon |
| 39 // database doesn't have a favicon for a webpage. | 41 // database doesn't have a favicon for a webpage. |
| 40 scoped_refptr<RefCountedBytes> default_favicon_; | 42 scoped_refptr<RefCountedBytes> default_favicon_; |
| 41 | 43 |
| 42 DISALLOW_COPY_AND_ASSIGN(FileIconSource); | 44 DISALLOW_COPY_AND_ASSIGN(FileIconSource); |
| 43 }; | 45 }; |
| 44 #endif // CHROME_BROWSER_DOM_UI_FILEICON_SOURCE_H_ | 46 #endif // CHROME_BROWSER_DOM_UI_FILEICON_SOURCE_H_ |
| OLD | NEW |