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

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

Issue 1370493002: Enable history counting for time ranges. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 5 years, 2 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 ---------------------------------------------------------------- 277 // Statistics ----------------------------------------------------------------
278 278
279 // Gets the number of URLs as seen in chrome://history with infinite date 279 // Gets the number of URLs as seen in chrome://history within the time range
280 // range. If a URL is visited in multiple days, the URL is counted once for 280 // [|begin_time|, |end_time|). Each URL is counted only once per day. For
281 // each day. For determination of the date, timestamps are converted to dates 281 // determination of the date, timestamps are converted to dates using local
282 // using local time. 282 // time.
283 HistoryCountResult GetHistoryCount(); 283 HistoryCountResult GetHistoryCount(const base::Time& begin_time,
284 const base::Time& end_time);
284 285
285 // Favicon ------------------------------------------------------------------- 286 // Favicon -------------------------------------------------------------------
286 287
287 void GetFavicons( 288 void GetFavicons(
288 const std::vector<GURL>& icon_urls, 289 const std::vector<GURL>& icon_urls,
289 int icon_types, 290 int icon_types,
290 const std::vector<int>& desired_sizes, 291 const std::vector<int>& desired_sizes,
291 std::vector<favicon_base::FaviconRawBitmapResult>* bitmap_results); 292 std::vector<favicon_base::FaviconRawBitmapResult>* bitmap_results);
292 293
293 void GetLargestFaviconForURL( 294 void GetLargestFaviconForURL(
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 888
888 // List of observers 889 // List of observers
889 base::ObserverList<HistoryBackendObserver> observers_; 890 base::ObserverList<HistoryBackendObserver> observers_;
890 891
891 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 892 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
892 }; 893 };
893 894
894 } // namespace history 895 } // namespace history
895 896
896 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ 897 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698