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

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

Issue 23477033: Implementing URL prefix match for history thumbnail cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replacing ASSERT_TRUE() << ... to NOTREACHED() << ... Created 7 years, 3 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 80084079bc0ff23ae4760f8b20826f861c564cb6..f4ff8f014388f4cc9752889265219f08650ed7c4 100644
--- a/chrome/browser/ui/webui/ntp/thumbnail_source.h
+++ b/chrome/browser/ui/webui/ntp/thumbnail_source.h
@@ -25,7 +25,7 @@ class ThumbnailService;
// thumbnails and the history/top-sites backend that serves these.
class ThumbnailSource : public content::URLDataSource {
public:
- explicit ThumbnailSource(Profile* profile);
+ ThumbnailSource(Profile* profile, bool prefix_match);
// content::URLDataSource implementation.
virtual std::string GetSource() const OVERRIDE;
@@ -53,6 +53,11 @@ class ThumbnailSource : public content::URLDataSource {
// Only used when servicing requests on the UI thread.
Profile* const profile_;
+ // If an exact thumbnail URL match fails, specifies whether or not to try
+ // harder by matching the query thumbnail URL as URL prefix. This affects
+ // GetSource().
+ const bool prefix_match_;
+
DISALLOW_COPY_AND_ASSIGN(ThumbnailSource);
};
« no previous file with comments | « chrome/browser/ui/webui/ntp/suggestions_page_handler.cc ('k') | chrome/browser/ui/webui/ntp/thumbnail_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698