OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CACHE_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_TOP_SITES_CACHE_H_ |
6 #define CHROME_BROWSER_HISTORY_TOP_SITES_CACHE_H_ | 6 #define CHROME_BROWSER_HISTORY_TOP_SITES_CACHE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <algorithm> | |
10 #include <map> | 9 #include <map> |
11 #include <string> | 10 #include <utility> |
12 | 11 |
13 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
14 #include "chrome/browser/history/history_types.h" | 13 #include "chrome/browser/history/history_types.h" |
15 | 14 |
16 class RefCountedBytes; | |
17 | |
18 namespace history { | 15 namespace history { |
19 | 16 |
20 // TopSitesCache caches the top sites and thumbnails for TopSites. | 17 // TopSitesCache caches the top sites and thumbnails for TopSites. |
21 class TopSitesCache { | 18 class TopSitesCache { |
22 public: | 19 public: |
23 TopSitesCache(); | 20 TopSitesCache(); |
24 ~TopSitesCache(); | 21 ~TopSitesCache(); |
25 | 22 |
26 // The top sites. | 23 // The top sites. |
27 void SetTopSites(const MostVisitedURLList& top_sites); | 24 void SetTopSites(const MostVisitedURLList& top_sites); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 // Generated from the redirects to and from the most visited pages. See | 93 // Generated from the redirects to and from the most visited pages. See |
97 // description above typedef for details. | 94 // description above typedef for details. |
98 CanonicalURLs canonical_urls_; | 95 CanonicalURLs canonical_urls_; |
99 | 96 |
100 DISALLOW_COPY_AND_ASSIGN(TopSitesCache); | 97 DISALLOW_COPY_AND_ASSIGN(TopSitesCache); |
101 }; | 98 }; |
102 | 99 |
103 } // namespace history | 100 } // namespace history |
104 | 101 |
105 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_CACHE_H_ | 102 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_CACHE_H_ |
OLD | NEW |