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

Unified Diff: chrome/browser/thumbnails/thumbnail_service.h

Issue 23477033: Implementing URL prefix match for history thumbnail cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Inlining; comment fixes. 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/thumbnails/thumbnail_service.h
diff --git a/chrome/browser/thumbnails/thumbnail_service.h b/chrome/browser/thumbnails/thumbnail_service.h
index 11da713c45cb409f089f039c42c63994fcf667ff..16a0273837e33aa17894c17d2683b9e941b9d6cd 100644
--- a/chrome/browser/thumbnails/thumbnail_service.h
+++ b/chrome/browser/thumbnails/thumbnail_service.h
@@ -39,10 +39,13 @@ class ThumbnailService : public RefcountedBrowserContextKeyedService {
// Gets a thumbnail for a given page. Returns true iff we have the thumbnail.
// This may be invoked on any thread.
+ // If an exact thumbnail URL match fails, |prefix_match| specifies whether or
+ // not to try harder by matching the query thumbnail URL as URL prefix.
// As this method may be invoked on any thread the ref count needs to be
// incremented before this method returns, so this takes a scoped_refptr*.
virtual bool GetPageThumbnail(
const GURL& url,
+ bool prefix_match,
scoped_refptr<base::RefCountedMemory>* bytes) = 0;
// Returns true if the page thumbnail should be updated.
@@ -52,6 +55,6 @@ class ThumbnailService : public RefcountedBrowserContextKeyedService {
virtual ~ThumbnailService() {}
};
-}
+} // namespace thumbnails
#endif // CHROME_BROWSER_THUMBNAILS_THUMBNAIL_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698