Chromium Code Reviews| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 261 MostVisitedURLList* result); | 261 MostVisitedURLList* result); |
| 262 | 262 |
| 263 // Request the |result_count| URLs and the chain of redirects | 263 // Request the |result_count| URLs and the chain of redirects |
| 264 // leading to each of these URLs, filterd and sorted based on the |filter|. | 264 // leading to each of these URLs, filterd and sorted based on the |filter|. |
| 265 // If |debug| is enabled, additional data will be computed and provided. | 265 // If |debug| is enabled, additional data will be computed and provided. |
| 266 void QueryFilteredURLs(int result_count, | 266 void QueryFilteredURLs(int result_count, |
| 267 const VisitFilter& filter, | 267 const VisitFilter& filter, |
| 268 bool debug, | 268 bool debug, |
| 269 FilteredURLList* result); | 269 FilteredURLList* result); |
| 270 | 270 |
| 271 // Statistics ---------------------------------------------------------------- | |
| 272 | |
| 273 // Count the number of URLs in the browsing history | |
|
Mike Lerman
2015/08/07 19:37:12
nit: trailing period please.
lwchkg
2015/08/09 16:11:49
Acknowledged. Anyway we need to discuss the naming
| |
| 274 int CountURLs(); | |
| 275 | |
| 271 // Favicon ------------------------------------------------------------------- | 276 // Favicon ------------------------------------------------------------------- |
| 272 | 277 |
| 273 void GetFavicons( | 278 void GetFavicons( |
| 274 const std::vector<GURL>& icon_urls, | 279 const std::vector<GURL>& icon_urls, |
| 275 int icon_types, | 280 int icon_types, |
| 276 const std::vector<int>& desired_sizes, | 281 const std::vector<int>& desired_sizes, |
| 277 std::vector<favicon_base::FaviconRawBitmapResult>* bitmap_results); | 282 std::vector<favicon_base::FaviconRawBitmapResult>* bitmap_results); |
| 278 | 283 |
| 279 void GetLargestFaviconForURL( | 284 void GetLargestFaviconForURL( |
| 280 const GURL& page_url, | 285 const GURL& page_url, |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 873 | 878 |
| 874 // List of observers | 879 // List of observers |
| 875 base::ObserverList<HistoryBackendObserver> observers_; | 880 base::ObserverList<HistoryBackendObserver> observers_; |
| 876 | 881 |
| 877 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 882 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 878 }; | 883 }; |
| 879 | 884 |
| 880 } // namespace history | 885 } // namespace history |
| 881 | 886 |
| 882 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ | 887 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
| OLD | NEW |