| 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_DOM_UI_WEB_UI_FAVICON_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_WEB_UI_FAVICON_SOURCE_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_WEB_UI_FAVICON_SOURCE_H_ | 6 #define CHROME_BROWSER_DOM_UI_WEB_UI_FAVICON_SOURCE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
| 13 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | |
| 14 #include "chrome/browser/favicon_service.h" | 13 #include "chrome/browser/favicon_service.h" |
| 14 #include "chrome/browser/webui/chrome_url_data_manager.h" |
| 15 | 15 |
| 16 class GURL; | 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 WebUIFavIconSource : public ChromeURLDataManager::DataSource { | 21 class WebUIFavIconSource : public ChromeURLDataManager::DataSource { |
| 22 public: | 22 public: |
| 23 explicit WebUIFavIconSource(Profile* profile); | 23 explicit WebUIFavIconSource(Profile* profile); |
| 24 | 24 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 47 CancelableRequestConsumerT<int, 0> cancelable_consumer_; | 47 CancelableRequestConsumerT<int, 0> cancelable_consumer_; |
| 48 | 48 |
| 49 // Raw PNG representation of the favicon to show when the favicon | 49 // Raw PNG representation of the favicon to show when the favicon |
| 50 // database doesn't have a favicon for a webpage. | 50 // database doesn't have a favicon for a webpage. |
| 51 scoped_refptr<RefCountedMemory> default_favicon_; | 51 scoped_refptr<RefCountedMemory> default_favicon_; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(WebUIFavIconSource); | 53 DISALLOW_COPY_AND_ASSIGN(WebUIFavIconSource); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 #endif // CHROME_BROWSER_DOM_UI_WEB_UI_FAVICON_SOURCE_H_ | 56 #endif // CHROME_BROWSER_DOM_UI_WEB_UI_FAVICON_SOURCE_H_ |
| OLD | NEW |