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

Side by Side Diff: chrome/browser/thumbnails/thumbnail_service_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_THUMBNAILS_THUMBNAIL_SERVICE_IMPL_H_ 5 #ifndef CHROME_BROWSER_THUMBNAILS_THUMBNAIL_SERVICE_IMPL_H_
6 #define CHROME_BROWSER_THUMBNAILS_THUMBNAIL_SERVICE_IMPL_H_ 6 #define CHROME_BROWSER_THUMBNAILS_THUMBNAIL_SERVICE_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "chrome/browser/history/top_sites.h" 9 #include "chrome/browser/history/top_sites.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 10 matching lines...) Expand all
21 class ThumbnailServiceImpl : public ThumbnailService { 21 class ThumbnailServiceImpl : public ThumbnailService {
22 public: 22 public:
23 explicit ThumbnailServiceImpl(Profile* profile); 23 explicit ThumbnailServiceImpl(Profile* profile);
24 24
25 // Implementation of ThumbnailService. 25 // Implementation of ThumbnailService.
26 virtual bool SetPageThumbnail(const ThumbnailingContext& context, 26 virtual bool SetPageThumbnail(const ThumbnailingContext& context,
27 const gfx::Image& thumbnail) OVERRIDE; 27 const gfx::Image& thumbnail) OVERRIDE;
28 virtual ThumbnailingAlgorithm* GetThumbnailingAlgorithm() const OVERRIDE; 28 virtual ThumbnailingAlgorithm* GetThumbnailingAlgorithm() const OVERRIDE;
29 virtual bool GetPageThumbnail( 29 virtual bool GetPageThumbnail(
30 const GURL& url, 30 const GURL& url,
31 bool prefix_match,
31 scoped_refptr<base::RefCountedMemory>* bytes) OVERRIDE; 32 scoped_refptr<base::RefCountedMemory>* bytes) OVERRIDE;
32 virtual bool ShouldAcquirePageThumbnail(const GURL& url) OVERRIDE; 33 virtual bool ShouldAcquirePageThumbnail(const GURL& url) OVERRIDE;
33 34
34 // Implementation of RefcountedBrowserContextKeyedService. 35 // Implementation of RefcountedBrowserContextKeyedService.
35 virtual void ShutdownOnUIThread() OVERRIDE; 36 virtual void ShutdownOnUIThread() OVERRIDE;
36 37
37 private: 38 private:
38 virtual ~ThumbnailServiceImpl(); 39 virtual ~ThumbnailServiceImpl();
39 40
40 scoped_refptr<history::TopSites> top_sites_; 41 scoped_refptr<history::TopSites> top_sites_;
41 bool use_thumbnail_retargeting_; 42 bool use_thumbnail_retargeting_;
42 43
43 DISALLOW_COPY_AND_ASSIGN(ThumbnailServiceImpl); 44 DISALLOW_COPY_AND_ASSIGN(ThumbnailServiceImpl);
44 }; 45 };
45 46
46 } 47 } // namespace thumbnails
47 48
48 #endif // CHROME_BROWSER_THUMBNAILS_THUMBNAIL_SERVICE_IMPL_H_ 49 #endif // CHROME_BROWSER_THUMBNAILS_THUMBNAIL_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/thumbnails/thumbnail_service.h ('k') | chrome/browser/thumbnails/thumbnail_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698