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

Side by Side Diff: chrome/browser/thumbnails/thumbnail_service_impl.h

Issue 815983002: Topsites become keyedService based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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
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_provider.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/thumbnails/thumbnail_service.h" 11 #include "chrome/browser/thumbnails/thumbnail_service.h"
12 12
13 namespace base { 13 namespace base {
14 class RefCountedMemory; 14 class RefCountedMemory;
15 } 15 }
16 16
17 namespace thumbnails { 17 namespace thumbnails {
18 18
19 // An implementation of ThumbnailService which delegates storage and most of 19 // An implementation of ThumbnailService which delegates storage and most of
(...skipping 11 matching lines...) Expand all
31 scoped_refptr<base::RefCountedMemory>* bytes) override; 31 scoped_refptr<base::RefCountedMemory>* bytes) override;
32 void AddForcedURL(const GURL& url) override; 32 void AddForcedURL(const GURL& url) override;
33 bool ShouldAcquirePageThumbnail(const GURL& url) override; 33 bool ShouldAcquirePageThumbnail(const GURL& url) override;
34 34
35 // Implementation of RefcountedKeyedService. 35 // Implementation of RefcountedKeyedService.
36 void ShutdownOnUIThread() override; 36 void ShutdownOnUIThread() override;
37 37
38 private: 38 private:
39 ~ThumbnailServiceImpl() override; 39 ~ThumbnailServiceImpl() override;
40 40
41 scoped_refptr<history::TopSites> top_sites_; 41 scoped_refptr<history::TopSitesProvider> top_sites_provider;
42 bool use_thumbnail_retargeting_; 42 bool use_thumbnail_retargeting_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(ThumbnailServiceImpl); 44 DISALLOW_COPY_AND_ASSIGN(ThumbnailServiceImpl);
45 }; 45 };
46 46
47 } // namespace thumbnails 47 } // namespace thumbnails
48 48
49 #endif // CHROME_BROWSER_THUMBNAILS_THUMBNAIL_SERVICE_IMPL_H_ 49 #endif // CHROME_BROWSER_THUMBNAILS_THUMBNAIL_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698