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

Unified Diff: chrome/browser/ui/webui/ntp/thumbnail_source.h

Issue 12529027: Chrome: Crash Report : InstantService::MaybeTranslateInstantPathOnIO (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git try Created 7 years, 9 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/ui/webui/ntp/thumbnail_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | chrome/browser/ui/webui/ntp/thumbnail_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698