| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_TOP_SITES_H_ |
| 6 #define CHROME_BROWSER_HISTORY_TOP_SITES_H_ | 6 #define CHROME_BROWSER_HISTORY_TOP_SITES_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 void StartMigration(); | 102 void StartMigration(); |
| 103 | 103 |
| 104 private: | 104 private: |
| 105 friend class base::RefCountedThreadSafe<TopSites>; | 105 friend class base::RefCountedThreadSafe<TopSites>; |
| 106 friend class TopSitesTest; | 106 friend class TopSitesTest; |
| 107 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, GetMostVisited); | 107 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, GetMostVisited); |
| 108 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, RealDatabase); | 108 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, RealDatabase); |
| 109 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, MockDatabase); | 109 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, MockDatabase); |
| 110 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, DeleteNotifications); | 110 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, DeleteNotifications); |
| 111 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, GetUpdateDelay); | 111 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, GetUpdateDelay); |
| 112 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, MigrationTest); | 112 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, Migration); |
| 113 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, QueueingRequestsForTopSites); | 113 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, QueueingRequestsForTopSites); |
| 114 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, CancelingRequestsForTopSites); | 114 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, CancelingRequestsForTopSites); |
| 115 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, AddTemporaryThumbnail); | 115 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, AddTemporaryThumbnail); |
| 116 | 116 |
| 117 ~TopSites(); | 117 ~TopSites(); |
| 118 | 118 |
| 119 // Sets the thumbnail without writing to the database. Useful when | 119 // Sets the thumbnail without writing to the database. Useful when |
| 120 // reading last known top sites from the DB. | 120 // reading last known top sites from the DB. |
| 121 // Returns true if the thumbnail was set, false if the existing one is better. | 121 // Returns true if the thumbnail was set, false if the existing one is better. |
| 122 bool SetPageThumbnailNoDB(const GURL& url, | 122 bool SetPageThumbnailNoDB(const GURL& url, |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 272 |
| 273 // TODO(brettw): use the blacklist. | 273 // TODO(brettw): use the blacklist. |
| 274 // std::set<GURL> blacklist_; | 274 // std::set<GURL> blacklist_; |
| 275 | 275 |
| 276 DISALLOW_COPY_AND_ASSIGN(TopSites); | 276 DISALLOW_COPY_AND_ASSIGN(TopSites); |
| 277 }; | 277 }; |
| 278 | 278 |
| 279 } // namespace history | 279 } // namespace history |
| 280 | 280 |
| 281 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_ | 281 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_ |
| OLD | NEW |