Index: chrome/browser/ui/webui/ntp/thumbnail_source.h |
diff --git a/chrome/browser/ui/webui/ntp/thumbnail_source.h b/chrome/browser/ui/webui/ntp/thumbnail_source.h |
index cbd82fa7358208953f02e65a14bd427ad047bff3..0c43451c7f2570ca170436ff6c145a8a0d1bb8c7 100644 |
--- a/chrome/browser/ui/webui/ntp/thumbnail_source.h |
+++ b/chrome/browser/ui/webui/ntp/thumbnail_source.h |
@@ -5,6 +5,7 @@ |
#ifndef CHROME_BROWSER_UI_WEBUI_NTP_THUMBNAIL_SOURCE_H_ |
#define CHROME_BROWSER_UI_WEBUI_NTP_THUMBNAIL_SOURCE_H_ |
+#include <map> |
#include <string> |
#include "base/basictypes.h" |
@@ -49,9 +50,13 @@ class ThumbnailSource : public content::URLDataSource { |
// ThumbnailService. |
scoped_refptr<thumbnails::ThumbnailService> thumbnail_service_; |
- // Transient copy of the request in play. Valid between |
- // ShouldServiceRequest() and StartDataRequest(). |
- mutable const net::URLRequest* current_request_; |
+ // Transient mappings from an ID-based path to an URL-based path. |
+ // The key is an ID-string, the value is a URL string. |
+ // Mappings are added in ShouldServiceRequest() and erased once |
+ // the request is serviced in StartDataRequest(). |
+ // TODO(dhollowa): Consider passing the |request| object through |
+ // to the StartDataRequest() call. |
+ mutable std::map<std::string, std::string> id_to_url_map_; |
// Only used when servicing requests on the UI thread. |
Profile* const profile_; |