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

Side by Side Diff: chrome/browser/history/top_sites_impl.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_HISTORY_TOP_SITES_IMPL_H_ 5 #ifndef CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_
6 #define CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_ 6 #define CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual bool SetPageThumbnail(const GURL& url, 58 virtual bool SetPageThumbnail(const GURL& url,
59 const gfx::Image& thumbnail, 59 const gfx::Image& thumbnail,
60 const ThumbnailScore& score) OVERRIDE; 60 const ThumbnailScore& score) OVERRIDE;
61 virtual bool SetPageThumbnailToJPEGBytes( 61 virtual bool SetPageThumbnailToJPEGBytes(
62 const GURL& url, 62 const GURL& url,
63 const base::RefCountedMemory* memory, 63 const base::RefCountedMemory* memory,
64 const ThumbnailScore& score) OVERRIDE; 64 const ThumbnailScore& score) OVERRIDE;
65 virtual void GetMostVisitedURLs( 65 virtual void GetMostVisitedURLs(
66 const GetMostVisitedURLsCallback& callback) OVERRIDE; 66 const GetMostVisitedURLsCallback& callback) OVERRIDE;
67 virtual bool GetPageThumbnail( 67 virtual bool GetPageThumbnail(
68 const GURL& url, scoped_refptr<base::RefCountedMemory>* bytes) OVERRIDE; 68 const GURL& url,
69 bool prefix_match,
70 scoped_refptr<base::RefCountedMemory>* bytes) OVERRIDE;
69 virtual bool GetPageThumbnailScore(const GURL& url, 71 virtual bool GetPageThumbnailScore(const GURL& url,
70 ThumbnailScore* score) OVERRIDE; 72 ThumbnailScore* score) OVERRIDE;
71 virtual bool GetTemporaryPageThumbnailScore(const GURL& url, 73 virtual bool GetTemporaryPageThumbnailScore(const GURL& url,
72 ThumbnailScore* score) OVERRIDE; 74 ThumbnailScore* score) OVERRIDE;
73 virtual void SyncWithHistory() OVERRIDE; 75 virtual void SyncWithHistory() OVERRIDE;
74 virtual bool HasBlacklistedItems() const OVERRIDE; 76 virtual bool HasBlacklistedItems() const OVERRIDE;
75 virtual void AddBlacklistedURL(const GURL& url) OVERRIDE; 77 virtual void AddBlacklistedURL(const GURL& url) OVERRIDE;
76 virtual void RemoveBlacklistedURL(const GURL& url) OVERRIDE; 78 virtual void RemoveBlacklistedURL(const GURL& url) OVERRIDE;
77 virtual bool IsBlacklisted(const GURL& url) OVERRIDE; 79 virtual bool IsBlacklisted(const GURL& url) OVERRIDE;
78 virtual void ClearBlacklistedURLs() OVERRIDE; 80 virtual void ClearBlacklistedURLs() OVERRIDE;
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 243
242 // Are we loaded? 244 // Are we loaded?
243 bool loaded_; 245 bool loaded_;
244 246
245 DISALLOW_COPY_AND_ASSIGN(TopSitesImpl); 247 DISALLOW_COPY_AND_ASSIGN(TopSitesImpl);
246 }; 248 };
247 249
248 } // namespace history 250 } // namespace history
249 251
250 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_ 252 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/top_sites_cache_unittest.cc ('k') | chrome/browser/history/top_sites_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698