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

Unified Diff: chrome/browser/thumbnails/thumbnail_service_impl.cc

Issue 23477033: Implementing URL prefix match for history thumbnail cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding url_utils.*; adding chrome://thumb2; refactoring. 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_impl.cc
diff --git a/chrome/browser/thumbnails/thumbnail_service_impl.cc b/chrome/browser/thumbnails/thumbnail_service_impl.cc
index ab3ef6273a8a2de41c9f51b5f33e55d473cb4cb3..f4ae3f5517385be916e99a288b11f5183ff674a2 100644
--- a/chrome/browser/thumbnails/thumbnail_service_impl.cc
+++ b/chrome/browser/thumbnails/thumbnail_service_impl.cc
@@ -28,13 +28,13 @@ bool IsThumbnailRetargetingEnabled() {
switches::kEnableThumbnailRetargeting);
}
-}
+} // namespace
namespace thumbnails {
ThumbnailServiceImpl::ThumbnailServiceImpl(Profile* profile)
: top_sites_(profile->GetTopSites()),
- use_thumbnail_retargeting_(IsThumbnailRetargetingEnabled()){
+ use_thumbnail_retargeting_(IsThumbnailRetargetingEnabled()) {
}
ThumbnailServiceImpl::~ThumbnailServiceImpl() {
@@ -51,12 +51,13 @@ bool ThumbnailServiceImpl::SetPageThumbnail(const ThumbnailingContext& context,
bool ThumbnailServiceImpl::GetPageThumbnail(
const GURL& url,
+ bool prefix_match,
scoped_refptr<base::RefCountedMemory>* bytes) {
scoped_refptr<history::TopSites> local_ptr(top_sites_);
if (local_ptr.get() == NULL)
return false;
- return local_ptr->GetPageThumbnail(url, bytes);
+ return local_ptr->GetPageThumbnail(url, prefix_match, bytes);
}
ThumbnailingAlgorithm* ThumbnailServiceImpl::GetThumbnailingAlgorithm()

Powered by Google App Engine
This is Rietveld 408576698