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

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: Adds proper handling of ThumbnailSource 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..3093f06ae1aa58c1c7929d03a1948808aee49c4d 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
Evan Stade 2013/03/11 19:47:08 one space after period.
dhollowa 2013/03/11 20:05:23 Done.
+ // 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