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

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

Issue 12732005: Most visited thumbnails and favicons need id-based urls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase with Sreeram's MV clicks change 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
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 dc988518187b32cf38dbad38e97af40e912c1b0d..cbd82fa7358208953f02e65a14bd427ad047bff3 100644
--- a/chrome/browser/ui/webui/ntp/thumbnail_source.h
+++ b/chrome/browser/ui/webui/ntp/thumbnail_source.h
@@ -49,6 +49,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_;
+
+ // Only used when servicing requests on the UI thread.
+ Profile* const profile_;
+
DISALLOW_COPY_AND_ASSIGN(ThumbnailSource);
};

Powered by Google App Engine
This is Rietveld 408576698