| 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_HISTORY_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 // Request the |result_count| most visited URLs and the chain of | 175 // Request the |result_count| most visited URLs and the chain of |
| 176 // redirects leading to each of these URLs. |days_back| is the | 176 // redirects leading to each of these URLs. |days_back| is the |
| 177 // number of days of history to use. Used by TopSites. | 177 // number of days of history to use. Used by TopSites. |
| 178 void QueryMostVisitedURLs(int result_count, | 178 void QueryMostVisitedURLs(int result_count, |
| 179 int days_back, | 179 int days_back, |
| 180 MostVisitedURLList* result); | 180 MostVisitedURLList* result); |
| 181 | 181 |
| 182 // Request the |result_count| URLs and the chain of redirects | 182 // Request the |result_count| URLs and the chain of redirects |
| 183 // leading to each of these URLs, filterd and sorted based on the |filter|. | 183 // leading to each of these URLs, filterd and sorted based on the |filter|. |
| 184 // If |debug| is enabled, additional data will be computed and provided. | 184 // If |debug| is enabled, additional data will be computed and provided. |
| 185 void QueryFilteredURLs( | 185 void QueryFilteredURLs(int result_count, |
| 186 scoped_refptr<QueryFilteredURLsRequest> request, | 186 const history::VisitFilter& filter, |
| 187 int result_count, | 187 bool debug, |
| 188 const history::VisitFilter& filter, | 188 history::FilteredURLList* result); |
| 189 bool debug); | |
| 190 | 189 |
| 191 // Favicon ------------------------------------------------------------------- | 190 // Favicon ------------------------------------------------------------------- |
| 192 | 191 |
| 193 void GetFavicons( | 192 void GetFavicons( |
| 194 const std::vector<GURL>& icon_urls, | 193 const std::vector<GURL>& icon_urls, |
| 195 int icon_types, | 194 int icon_types, |
| 196 const std::vector<int>& desired_sizes, | 195 const std::vector<int>& desired_sizes, |
| 197 std::vector<favicon_base::FaviconRawBitmapResult>* bitmap_results); | 196 std::vector<favicon_base::FaviconRawBitmapResult>* bitmap_results); |
| 198 | 197 |
| 199 void GetLargestFaviconForURL( | 198 void GetLargestFaviconForURL( |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 | 835 |
| 837 // Listens for the system being under memory pressure. | 836 // Listens for the system being under memory pressure. |
| 838 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 837 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
| 839 | 838 |
| 840 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 839 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 841 }; | 840 }; |
| 842 | 841 |
| 843 } // namespace history | 842 } // namespace history |
| 844 | 843 |
| 845 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 844 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| OLD | NEW |