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_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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "chrome/browser/history/history_types.h" | |
13 #include "chrome/browser/history/url_utils.h" | 12 #include "chrome/browser/history/url_utils.h" |
| 13 #include "components/history/core/browser/history_types.h" |
14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
15 | 15 |
16 class GURL; | 16 class GURL; |
17 | 17 |
18 namespace history { | 18 namespace history { |
19 | 19 |
20 // TopSiteCache caches thumbnails for visited pages. Retrieving thumbnails from | 20 // TopSiteCache caches thumbnails for visited pages. Retrieving thumbnails from |
21 // a given input URL is a two-stage process: | 21 // a given input URL is a two-stage process: |
22 // | 22 // |
23 // input URL --(map 1)--> canonical URL --(map 2)--> image. | 23 // input URL --(map 1)--> canonical URL --(map 2)--> image. |
(...skipping 137 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 | 161 // Helper to clear "/path?query#ref" from any GURL. This is set in the |
162 // constructor and never modified after. | 162 // constructor and never modified after. |
163 GURL::Replacements clear_path_query_ref_; | 163 GURL::Replacements clear_path_query_ref_; |
164 | 164 |
165 DISALLOW_COPY_AND_ASSIGN(TopSitesCache); | 165 DISALLOW_COPY_AND_ASSIGN(TopSitesCache); |
166 }; | 166 }; |
167 | 167 |
168 } // namespace history | 168 } // namespace history |
169 | 169 |
170 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_CACHE_H_ | 170 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_CACHE_H_ |
OLD | NEW |