Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(650)

Side by Side Diff: components/history/core/browser/history_backend.h

Issue 1345473003: Added HistoryService::GetHistoryCount() and helper functions in components/history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to msramek's comment + fixed wrong localtime calculation Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 // Gets the number of URLs as seen in chrome://history with infinite date
280 // range. If a URL is visited in multiple days, the URL is counted once for
281 // each day. For determination of the date, timestamps are converted to dates
282 // using local time.
283 HistoryCountResult GetHistoryCount();
284
277 // Favicon ------------------------------------------------------------------- 285 // Favicon -------------------------------------------------------------------
278 286
279 void GetFavicons( 287 void GetFavicons(
280 const std::vector<GURL>& icon_urls, 288 const std::vector<GURL>& icon_urls,
281 int icon_types, 289 int icon_types,
282 const std::vector<int>& desired_sizes, 290 const std::vector<int>& desired_sizes,
283 std::vector<favicon_base::FaviconRawBitmapResult>* bitmap_results); 291 std::vector<favicon_base::FaviconRawBitmapResult>* bitmap_results);
284 292
285 void GetLargestFaviconForURL( 293 void GetLargestFaviconForURL(
286 const GURL& page_url, 294 const GURL& page_url,
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 888
881 // List of observers 889 // List of observers
882 base::ObserverList<HistoryBackendObserver> observers_; 890 base::ObserverList<HistoryBackendObserver> observers_;
883 891
884 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 892 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
885 }; 893 };
886 894
887 } // namespace history 895 } // namespace history
888 896
889 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ 897 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_
OLDNEW
« no previous file with comments | « no previous file | components/history/core/browser/history_backend.cc » ('j') | components/history/core/browser/history_backend.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698