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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_THUMBNAIL_SOURCE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_THUMBNAIL_SOURCE_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_THUMBNAIL_SOURCE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NTP_THUMBNAIL_SOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 private: 42 private:
43 virtual ~ThumbnailSource(); 43 virtual ~ThumbnailSource();
44 44
45 // Raw PNG representation of the thumbnail to show when the thumbnail 45 // Raw PNG representation of the thumbnail to show when the thumbnail
46 // database doesn't have a thumbnail for a webpage. 46 // database doesn't have a thumbnail for a webpage.
47 scoped_refptr<base::RefCountedMemory> default_thumbnail_; 47 scoped_refptr<base::RefCountedMemory> default_thumbnail_;
48 48
49 // ThumbnailService. 49 // ThumbnailService.
50 scoped_refptr<thumbnails::ThumbnailService> thumbnail_service_; 50 scoped_refptr<thumbnails::ThumbnailService> thumbnail_service_;
51 51
52 // 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.
53 // ShouldServiceRequest() and StartDataRequest().
54 mutable const net::URLRequest* current_request_;
55
56 // Only used when servicing requests on the UI thread.
57 Profile* const profile_;
58
52 DISALLOW_COPY_AND_ASSIGN(ThumbnailSource); 59 DISALLOW_COPY_AND_ASSIGN(ThumbnailSource);
53 }; 60 };
54 61
55 #endif // CHROME_BROWSER_UI_WEBUI_NTP_THUMBNAIL_SOURCE_H_ 62 #endif // CHROME_BROWSER_UI_WEBUI_NTP_THUMBNAIL_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698