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

Side by Side Diff: chrome/browser/history/top_sites_impl.h

Issue 815983002: Topsites become keyedService based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments Created 5 years, 11 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
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void Shutdown() override; 76 void Shutdown() override;
77 base::CancelableTaskTracker::TaskId StartQueryForMostVisited() override; 77 base::CancelableTaskTracker::TaskId StartQueryForMostVisited() override;
78 bool IsKnownURL(const GURL& url) override; 78 bool IsKnownURL(const GURL& url) override;
79 const std::string& GetCanonicalURLString(const GURL& url) const override; 79 const std::string& GetCanonicalURLString(const GURL& url) const override;
80 bool IsNonForcedFull() override; 80 bool IsNonForcedFull() override;
81 bool IsForcedFull() override; 81 bool IsForcedFull() override;
82 MostVisitedURLList GetPrepopulatePages() override; 82 MostVisitedURLList GetPrepopulatePages() override;
83 bool loaded() const override; 83 bool loaded() const override;
84 bool AddForcedURL(const GURL& url, const base::Time& time) override; 84 bool AddForcedURL(const GURL& url, const base::Time& time) override;
85 85
86 // RefcountedKeyedService:
87 void ShutdownOnUIThread() override;
88
86 protected: 89 protected:
87 ~TopSitesImpl() override; 90 ~TopSitesImpl() override;
88 91
89 private: 92 private:
90 friend class TopSitesImplTest; 93 friend class TopSitesImplTest;
91 FRIEND_TEST_ALL_PREFIXES(TopSitesImplTest, DiffMostVisited); 94 FRIEND_TEST_ALL_PREFIXES(TopSitesImplTest, DiffMostVisited);
92 FRIEND_TEST_ALL_PREFIXES(TopSitesImplTest, DiffMostVisitedWithForced); 95 FRIEND_TEST_ALL_PREFIXES(TopSitesImplTest, DiffMostVisitedWithForced);
93 96
94 typedef base::Callback<void(const MostVisitedURLList&, 97 typedef base::Callback<void(const MostVisitedURLList&,
95 const MostVisitedURLList&)> PendingCallback; 98 const MostVisitedURLList&)> PendingCallback;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 259
257 // Are we loaded? 260 // Are we loaded?
258 bool loaded_; 261 bool loaded_;
259 262
260 DISALLOW_COPY_AND_ASSIGN(TopSitesImpl); 263 DISALLOW_COPY_AND_ASSIGN(TopSitesImpl);
261 }; 264 };
262 265
263 } // namespace history 266 } // namespace history
264 267
265 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_ 268 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698