OLD | NEW |
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 scoped_refptr<base::RefCountedMemory>* bytes) override; | 66 scoped_refptr<base::RefCountedMemory>* bytes) override; |
67 bool GetPageThumbnailScore(const GURL& url, ThumbnailScore* score) override; | 67 bool GetPageThumbnailScore(const GURL& url, ThumbnailScore* score) override; |
68 bool GetTemporaryPageThumbnailScore(const GURL& url, | 68 bool GetTemporaryPageThumbnailScore(const GURL& url, |
69 ThumbnailScore* score) override; | 69 ThumbnailScore* score) override; |
70 void SyncWithHistory() override; | 70 void SyncWithHistory() override; |
71 bool HasBlacklistedItems() const override; | 71 bool HasBlacklistedItems() const override; |
72 void AddBlacklistedURL(const GURL& url) override; | 72 void AddBlacklistedURL(const GURL& url) override; |
73 void RemoveBlacklistedURL(const GURL& url) override; | 73 void RemoveBlacklistedURL(const GURL& url) override; |
74 bool IsBlacklisted(const GURL& url) override; | 74 bool IsBlacklisted(const GURL& url) override; |
75 void ClearBlacklistedURLs() override; | 75 void ClearBlacklistedURLs() override; |
76 void Shutdown() override; | |
77 base::CancelableTaskTracker::TaskId StartQueryForMostVisited() override; | 76 base::CancelableTaskTracker::TaskId StartQueryForMostVisited() override; |
78 bool IsKnownURL(const GURL& url) override; | 77 bool IsKnownURL(const GURL& url) override; |
79 const std::string& GetCanonicalURLString(const GURL& url) const override; | 78 const std::string& GetCanonicalURLString(const GURL& url) const override; |
80 bool IsNonForcedFull() override; | 79 bool IsNonForcedFull() override; |
81 bool IsForcedFull() override; | 80 bool IsForcedFull() override; |
82 MostVisitedURLList GetPrepopulatePages() override; | 81 MostVisitedURLList GetPrepopulatePages() override; |
83 bool loaded() const override; | 82 bool loaded() const override; |
84 bool AddForcedURL(const GURL& url, const base::Time& time) override; | 83 bool AddForcedURL(const GURL& url, const base::Time& time) override; |
85 | 84 |
| 85 // RefcountedKeyedService: |
| 86 void ShutdownOnUIThread() override; |
| 87 |
86 protected: | 88 protected: |
87 ~TopSitesImpl() override; | 89 ~TopSitesImpl() override; |
88 | 90 |
89 private: | 91 private: |
90 friend class TopSitesImplTest; | 92 friend class TopSitesImplTest; |
91 FRIEND_TEST_ALL_PREFIXES(TopSitesImplTest, DiffMostVisited); | 93 FRIEND_TEST_ALL_PREFIXES(TopSitesImplTest, DiffMostVisited); |
92 FRIEND_TEST_ALL_PREFIXES(TopSitesImplTest, DiffMostVisitedWithForced); | 94 FRIEND_TEST_ALL_PREFIXES(TopSitesImplTest, DiffMostVisitedWithForced); |
93 | 95 |
94 typedef base::Callback<void(const MostVisitedURLList&, | 96 typedef base::Callback<void(const MostVisitedURLList&, |
95 const MostVisitedURLList&)> PendingCallback; | 97 const MostVisitedURLList&)> PendingCallback; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 258 |
257 // Are we loaded? | 259 // Are we loaded? |
258 bool loaded_; | 260 bool loaded_; |
259 | 261 |
260 DISALLOW_COPY_AND_ASSIGN(TopSitesImpl); | 262 DISALLOW_COPY_AND_ASSIGN(TopSitesImpl); |
261 }; | 263 }; |
262 | 264 |
263 } // namespace history | 265 } // namespace history |
264 | 266 |
265 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_ | 267 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_ |
OLD | NEW |