Chromium Code Reviews| 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..ad41d6100cf0e7aff99d73f3e9169028ddd81a56 100644 |
| --- a/chrome/browser/ui/webui/ntp/thumbnail_source.h |
| +++ b/chrome/browser/ui/webui/ntp/thumbnail_source.h |
| @@ -26,6 +26,7 @@ class ThumbnailService; |
| class ThumbnailSource : public content::URLDataSource { |
| public: |
| explicit ThumbnailSource(Profile* profile); |
|
sky
2013/09/12 23:51:41
Nuke this and replace with prefix_match.
huangs
2013/09/13 02:30:37
Done, updated 2 callers.
|
| + ThumbnailSource(Profile* profile, bool prefix_match); |
| // content::URLDataSource implementation. |
| virtual std::string GetSource() const OVERRIDE; |
| @@ -53,6 +54,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(). |
| + bool prefix_match_; |
|
sky
2013/09/12 23:51:41
const.
huangs
2013/09/13 02:30:37
Done.
|
| + |
| DISALLOW_COPY_AND_ASSIGN(ThumbnailSource); |
| }; |