| 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_HISTORY_BACKEND_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
| 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 MostVisitedURLList* result); | 267 MostVisitedURLList* result); |
| 268 | 268 |
| 269 // Request the |result_count| URLs and the chain of redirects | 269 // Request the |result_count| URLs and the chain of redirects |
| 270 // leading to each of these URLs, filterd and sorted based on the |filter|. | 270 // leading to each of these URLs, filterd and sorted based on the |filter|. |
| 271 // If |debug| is enabled, additional data will be computed and provided. | 271 // If |debug| is enabled, additional data will be computed and provided. |
| 272 void QueryFilteredURLs(int result_count, | 272 void QueryFilteredURLs(int result_count, |
| 273 const VisitFilter& filter, | 273 const VisitFilter& filter, |
| 274 bool debug, | 274 bool debug, |
| 275 FilteredURLList* result); | 275 FilteredURLList* result); |
| 276 | 276 |
| 277 // Statistics ---------------------------------------------------------------- |
| 278 |
| 279 // Count the number of URLs in the browsing history. |
| 280 HistoryCountResult GetHistoryCount(); |
| 281 |
| 277 // Favicon ------------------------------------------------------------------- | 282 // Favicon ------------------------------------------------------------------- |
| 278 | 283 |
| 279 void GetFavicons( | 284 void GetFavicons( |
| 280 const std::vector<GURL>& icon_urls, | 285 const std::vector<GURL>& icon_urls, |
| 281 int icon_types, | 286 int icon_types, |
| 282 const std::vector<int>& desired_sizes, | 287 const std::vector<int>& desired_sizes, |
| 283 std::vector<favicon_base::FaviconRawBitmapResult>* bitmap_results); | 288 std::vector<favicon_base::FaviconRawBitmapResult>* bitmap_results); |
| 284 | 289 |
| 285 void GetLargestFaviconForURL( | 290 void GetLargestFaviconForURL( |
| 286 const GURL& page_url, | 291 const GURL& page_url, |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 | 885 |
| 881 // List of observers | 886 // List of observers |
| 882 base::ObserverList<HistoryBackendObserver> observers_; | 887 base::ObserverList<HistoryBackendObserver> observers_; |
| 883 | 888 |
| 884 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 889 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 885 }; | 890 }; |
| 886 | 891 |
| 887 } // namespace history | 892 } // namespace history |
| 888 | 893 |
| 889 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ | 894 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
| OLD | NEW |