Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(489)

Unified Diff: chrome/browser/dom_ui/dom_ui_thumbnail_source.h

Issue 149126: Modify ThumbnailStore to make one call to the HistoryBackend using QueryTopUR... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/dom_ui/dom_ui_thumbnail_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/dom_ui_thumbnail_source.h
===================================================================
--- chrome/browser/dom_ui/dom_ui_thumbnail_source.h (revision 19748)
+++ chrome/browser/dom_ui/dom_ui_thumbnail_source.h (working copy)
@@ -21,17 +21,11 @@
class DOMUIThumbnailSource : public ChromeURLDataManager::DataSource {
public:
explicit DOMUIThumbnailSource(Profile* profile);
- virtual ~DOMUIThumbnailSource();
// Called when the network layer has requested a resource underneath
// the path we registered.
virtual void StartDataRequest(const std::string& path, int request_id);
- // Used only when chromium is invoked with the --thumbnail-store switch.
- // If StartDataRequest does not return thumbnail data synchronously, this
- // method will be invoked when the thumbnail data becomes available.
- virtual void ReturnData(int request_id, scoped_refptr<RefCountedBytes> data);
-
virtual std::string GetMimeType(const std::string&) const {
// We need to explicitly return a mime type, otherwise if the user tries to
// drag the image they get no extension.
@@ -46,9 +40,6 @@
Profile* profile_;
CancelableRequestConsumerT<int, 0> cancelable_consumer_;
- // A set of outstanding request_id's. These are canceled on destruction.
- std::set<int> pending_requests_;
-
// The ThumbnailStore from which thumbnails are requested.
scoped_refptr<ThumbnailStore> store_;
« no previous file with comments | « no previous file | chrome/browser/dom_ui/dom_ui_thumbnail_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698