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

Unified Diff: chrome/browser/ui/webui/ntp/suggestions_source_top_sites.h

Issue 10060003: Support for different weight-functions for time-slicing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added missing #include Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/ntp/suggestions_source_top_sites.h
diff --git a/chrome/browser/ui/webui/ntp/suggestions_source_top_sites.h b/chrome/browser/ui/webui/ntp/suggestions_source_top_sites.h
index 7a060ebd2477dd900e9426f1ccceb3e22e4b2bce..dfa7d6ab836ecb6036ec7595adfb067616ea55e2 100644
--- a/chrome/browser/ui/webui/ntp/suggestions_source_top_sites.h
+++ b/chrome/browser/ui/webui/ntp/suggestions_source_top_sites.h
@@ -10,6 +10,7 @@
#include "chrome/browser/cancelable_request.h"
#include "chrome/browser/history/history_types.h"
+#include "chrome/browser/history/visit_filter.h"
#include "chrome/browser/ui/webui/ntp/suggestions_source.h"
class SuggestionsCombiner;
@@ -39,6 +40,16 @@ class SuggestionsSourceTopSites : public SuggestionsSource {
const history::FilteredURLList& data);
private:
+
+ // Gets the sorting order from the command-line arguments. Defaults to
+ // |ORDER_BY_RECENCY| if there are no command-line argument specifying a
+ // sorting order.
+ static history::VisitFilter::SortingOrder GetSortingOrder();
+
+ // Gets the filter width from the command-line arguments. Defaults to one
+ // hour if there are no command-line argument setting the filter width.
+ static base::TimeDelta GetFilterWidth();
+
// Our combiner.
SuggestionsCombiner* combiner_;
« no previous file with comments | « chrome/browser/history/visit_filter_unittest.cc ('k') | chrome/browser/ui/webui/ntp/suggestions_source_top_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698