OLD | NEW |
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_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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 namespace base { | 22 namespace base { |
23 class FilePath; | 23 class FilePath; |
24 class RefCountedBytes; | 24 class RefCountedBytes; |
25 class RefCountedMemory; | 25 class RefCountedMemory; |
26 } | 26 } |
27 | 27 |
28 namespace history { | 28 namespace history { |
29 | 29 |
30 class TopSitesCache; | 30 class TopSitesCache; |
31 class TopSitesTest; | |
32 | 31 |
33 // Interface for TopSites, which stores the data for the top "most visited" | 32 // Interface for TopSites, which stores the data for the top "most visited" |
34 // sites. This includes a cache of the most visited data from history, as well | 33 // sites. This includes a cache of the most visited data from history, as well |
35 // as the corresponding thumbnails of those sites. | 34 // as the corresponding thumbnails of those sites. |
36 // | 35 // |
37 // Some methods should only be called from the UI thread (see method | 36 // Some methods should only be called from the UI thread (see method |
38 // descriptions below). All others are assumed to be threadsafe. | 37 // descriptions below). All others are assumed to be threadsafe. |
39 class TopSites | 38 class TopSites |
40 : public base::RefCountedThreadSafe<TopSites>, | 39 : public base::RefCountedThreadSafe<TopSites>, |
41 public content::NotificationObserver { | 40 public content::NotificationObserver { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 171 |
173 #if defined(OS_ANDROID) | 172 #if defined(OS_ANDROID) |
174 extern const TopSites::PrepopulatedPage kPrepopulatedPages[1]; | 173 extern const TopSites::PrepopulatedPage kPrepopulatedPages[1]; |
175 #else | 174 #else |
176 extern const TopSites::PrepopulatedPage kPrepopulatedPages[2]; | 175 extern const TopSites::PrepopulatedPage kPrepopulatedPages[2]; |
177 #endif | 176 #endif |
178 | 177 |
179 } // namespace history | 178 } // namespace history |
180 | 179 |
181 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_ | 180 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_ |
OLD | NEW |