| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // then calling this function with url=C would fill redirects with {B, A}. | 169 // then calling this function with url=C would fill redirects with {B, A}. |
| 170 void QueryRedirectsTo(const GURL& url, RedirectList* redirects); | 170 void QueryRedirectsTo(const GURL& url, RedirectList* redirects); |
| 171 | 171 |
| 172 void GetVisibleVisitCountToHost( | 172 void GetVisibleVisitCountToHost( |
| 173 scoped_refptr<GetVisibleVisitCountToHostRequest> request, | 173 scoped_refptr<GetVisibleVisitCountToHostRequest> request, |
| 174 const GURL& url); | 174 const GURL& url); |
| 175 | 175 |
| 176 // Request the |result_count| most visited URLs and the chain of | 176 // Request the |result_count| most visited URLs and the chain of |
| 177 // redirects leading to each of these URLs. |days_back| is the | 177 // redirects leading to each of these URLs. |days_back| is the |
| 178 // number of days of history to use. Used by TopSites. | 178 // number of days of history to use. Used by TopSites. |
| 179 void QueryMostVisitedURLs( | 179 void QueryMostVisitedURLs(int result_count, |
| 180 scoped_refptr<QueryMostVisitedURLsRequest> request, | 180 int days_back, |
| 181 int result_count, | 181 MostVisitedURLList* result); |
| 182 int days_back); | |
| 183 | 182 |
| 184 // Request the |result_count| URLs and the chain of redirects | 183 // Request the |result_count| URLs and the chain of redirects |
| 185 // leading to each of these URLs, filterd and sorted based on the |filter|. | 184 // leading to each of these URLs, filterd and sorted based on the |filter|. |
| 186 // If |debug| is enabled, additional data will be computed and provided. | 185 // If |debug| is enabled, additional data will be computed and provided. |
| 187 void QueryFilteredURLs( | 186 void QueryFilteredURLs( |
| 188 scoped_refptr<QueryFilteredURLsRequest> request, | 187 scoped_refptr<QueryFilteredURLsRequest> request, |
| 189 int result_count, | 188 int result_count, |
| 190 const history::VisitFilter& filter, | 189 const history::VisitFilter& filter, |
| 191 bool debug); | 190 bool debug); |
| 192 | 191 |
| 193 // QueryMostVisitedURLs without the request. | |
| 194 void QueryMostVisitedURLsImpl(int result_count, | |
| 195 int days_back, | |
| 196 MostVisitedURLList* result); | |
| 197 | |
| 198 // Favicon ------------------------------------------------------------------- | 192 // Favicon ------------------------------------------------------------------- |
| 199 | 193 |
| 200 void GetFavicons( | 194 void GetFavicons( |
| 201 const std::vector<GURL>& icon_urls, | 195 const std::vector<GURL>& icon_urls, |
| 202 int icon_types, | 196 int icon_types, |
| 203 const std::vector<int>& desired_sizes, | 197 const std::vector<int>& desired_sizes, |
| 204 std::vector<favicon_base::FaviconRawBitmapResult>* bitmap_results); | 198 std::vector<favicon_base::FaviconRawBitmapResult>* bitmap_results); |
| 205 | 199 |
| 206 void GetLargestFaviconForURL( | 200 void GetLargestFaviconForURL( |
| 207 const GURL& page_url, | 201 const GURL& page_url, |
| (...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 | 844 |
| 851 // Listens for the system being under memory pressure. | 845 // Listens for the system being under memory pressure. |
| 852 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 846 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
| 853 | 847 |
| 854 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 848 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 855 }; | 849 }; |
| 856 | 850 |
| 857 } // namespace history | 851 } // namespace history |
| 858 | 852 |
| 859 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 853 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| OLD | NEW |