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_THUMBNAIL_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_WEB_UI_THUMBNAIL_SOURCE_H_ |
6 #define CHROME_BROWSER_DOM_UI_WEB_UI_THUMBNAIL_SOURCE_H_ | 6 #define CHROME_BROWSER_DOM_UI_WEB_UI_THUMBNAIL_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 "base/ref_counted_memory.h" | 13 #include "base/ref_counted_memory.h" |
14 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 14 #include "chrome/browser/webui/chrome_url_data_manager.h" |
15 | 15 |
16 class Profile; | 16 class Profile; |
17 | 17 |
18 namespace history { | 18 namespace history { |
19 class TopSites; | 19 class TopSites; |
20 } | 20 } |
21 | 21 |
22 // ThumbnailSource is the gateway between network-level chrome: requests for | 22 // ThumbnailSource is the gateway between network-level chrome: requests for |
23 // thumbnails and the history/top-sites backend that serves these. | 23 // thumbnails and the history/top-sites backend that serves these. |
24 class WebUIThumbnailSource : public ChromeURLDataManager::DataSource { | 24 class WebUIThumbnailSource : public ChromeURLDataManager::DataSource { |
(...skipping 20 matching lines...) Expand all Loading... |
45 // database doesn't have a thumbnail for a webpage. | 45 // database doesn't have a thumbnail for a webpage. |
46 scoped_refptr<RefCountedMemory> default_thumbnail_; | 46 scoped_refptr<RefCountedMemory> default_thumbnail_; |
47 | 47 |
48 // TopSites. | 48 // TopSites. |
49 scoped_refptr<history::TopSites> top_sites_; | 49 scoped_refptr<history::TopSites> top_sites_; |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(WebUIThumbnailSource); | 51 DISALLOW_COPY_AND_ASSIGN(WebUIThumbnailSource); |
52 }; | 52 }; |
53 | 53 |
54 #endif // CHROME_BROWSER_DOM_UI_WEB_UI_THUMBNAIL_SOURCE_H_ | 54 #endif // CHROME_BROWSER_DOM_UI_WEB_UI_THUMBNAIL_SOURCE_H_ |
OLD | NEW |