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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, PinnedURLsDeleted); | 146 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, PinnedURLsDeleted); |
147 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, GetUpdateDelay); | 147 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, GetUpdateDelay); |
148 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, Migration); | 148 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, Migration); |
149 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, QueueingRequestsForTopSites); | 149 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, QueueingRequestsForTopSites); |
150 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, CancelingRequestsForTopSites); | 150 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, CancelingRequestsForTopSites); |
151 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, AddTemporaryThumbnail); | 151 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, AddTemporaryThumbnail); |
152 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, Blacklisting); | 152 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, Blacklisting); |
153 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, PinnedURLs); | 153 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, PinnedURLs); |
154 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, BlacklistingAndPinnedURLs); | 154 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, BlacklistingAndPinnedURLs); |
155 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, AddPrepopulatedPages); | 155 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, AddPrepopulatedPages); |
| 156 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, GetPageThumbnail); |
156 | 157 |
157 ~TopSites(); | 158 ~TopSites(); |
158 | 159 |
159 // Sets the thumbnail without writing to the database. Useful when | 160 // Sets the thumbnail without writing to the database. Useful when |
160 // reading last known top sites from the DB. | 161 // reading last known top sites from the DB. |
161 // Returns true if the thumbnail was set, false if the existing one is better. | 162 // Returns true if the thumbnail was set, false if the existing one is better. |
162 bool SetPageThumbnailNoDB(const GURL& url, | 163 bool SetPageThumbnailNoDB(const GURL& url, |
163 const RefCountedBytes* thumbnail_data, | 164 const RefCountedBytes* thumbnail_data, |
164 const ThumbnailScore& score); | 165 const ThumbnailScore& score); |
165 | 166 |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 // index where it is pinned at (may be the same as key). This is | 355 // index where it is pinned at (may be the same as key). This is |
355 // owned by the PrefService. | 356 // owned by the PrefService. |
356 DictionaryValue* pinned_urls_; | 357 DictionaryValue* pinned_urls_; |
357 | 358 |
358 DISALLOW_COPY_AND_ASSIGN(TopSites); | 359 DISALLOW_COPY_AND_ASSIGN(TopSites); |
359 }; | 360 }; |
360 | 361 |
361 } // namespace history | 362 } // namespace history |
362 | 363 |
363 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_ | 364 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_ |
OLD | NEW |