| 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 COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_CACHE_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_CACHE_H_ |
| 6 #define COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_CACHE_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_CACHE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <map> | 10 #include <map> |
| 9 #include <utility> | 11 #include <utility> |
| 10 | 12 |
| 13 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 12 #include "components/history/core/browser/history_types.h" | 15 #include "components/history/core/browser/history_types.h" |
| 13 #include "components/history/core/browser/url_utils.h" | 16 #include "components/history/core/browser/url_utils.h" |
| 14 #include "url/gurl.h" | 17 #include "url/gurl.h" |
| 15 | 18 |
| 16 class GURL; | 19 class GURL; |
| 17 | 20 |
| 18 namespace history { | 21 namespace history { |
| 19 | 22 |
| 20 // TopSiteCache caches thumbnails for visited pages. Retrieving thumbnails from | 23 // TopSiteCache caches thumbnails for visited pages. Retrieving thumbnails from |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // Helper to clear "/path?query#ref" from any GURL. This is set in the | 164 // Helper to clear "/path?query#ref" from any GURL. This is set in the |
| 162 // constructor and never modified after. | 165 // constructor and never modified after. |
| 163 GURL::Replacements clear_path_query_ref_; | 166 GURL::Replacements clear_path_query_ref_; |
| 164 | 167 |
| 165 DISALLOW_COPY_AND_ASSIGN(TopSitesCache); | 168 DISALLOW_COPY_AND_ASSIGN(TopSitesCache); |
| 166 }; | 169 }; |
| 167 | 170 |
| 168 } // namespace history | 171 } // namespace history |
| 169 | 172 |
| 170 #endif // COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_CACHE_H_ | 173 #endif // COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_CACHE_H_ |
| OLD | NEW |