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 25 matching lines...) Expand all Loading... |
36 class FilePath; | 36 class FilePath; |
37 class RefCountedBytes; | 37 class RefCountedBytes; |
38 class RefCountedMemory; | 38 class RefCountedMemory; |
39 } | 39 } |
40 | 40 |
41 namespace history { | 41 namespace history { |
42 | 42 |
43 class TopSitesCache; | 43 class TopSitesCache; |
44 class TopSitesImplTest; | 44 class TopSitesImplTest; |
45 | 45 |
46 | |
47 // This class allows requests for most visited urls and thumbnails on any | 46 // This class allows requests for most visited urls and thumbnails on any |
48 // thread. All other methods must be invoked on the UI thread. All mutations | 47 // thread. All other methods must be invoked on the UI thread. All mutations |
49 // to internal state happen on the UI thread and are scheduled to update the | 48 // to internal state happen on the UI thread and are scheduled to update the |
50 // db using TopSitesBackend. | 49 // db using TopSitesBackend. |
51 class TopSitesImpl : public TopSites { | 50 class TopSitesImpl : public TopSites { |
52 public: | 51 public: |
53 explicit TopSitesImpl(Profile* profile); | 52 explicit TopSitesImpl(Profile* profile); |
54 | 53 |
55 // Initializes TopSitesImpl. | 54 // Initializes TopSitesImpl. |
56 void Init(const base::FilePath& db_name); | 55 void Init(const base::FilePath& db_name); |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 242 |
244 // Are we loaded? | 243 // Are we loaded? |
245 bool loaded_; | 244 bool loaded_; |
246 | 245 |
247 DISALLOW_COPY_AND_ASSIGN(TopSitesImpl); | 246 DISALLOW_COPY_AND_ASSIGN(TopSitesImpl); |
248 }; | 247 }; |
249 | 248 |
250 } // namespace history | 249 } // namespace history |
251 | 250 |
252 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_ | 251 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_ |
OLD | NEW |