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

Unified Diff: chrome/browser/history/history_types.h

Issue 10115001: Added page score to the ntp suggestions tab. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed comment Created 8 years, 8 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
« no previous file with comments | « chrome/browser/history/history_marshaling.h ('k') | chrome/browser/history/history_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_types.h
diff --git a/chrome/browser/history/history_types.h b/chrome/browser/history/history_types.h
index 050e528eadf8e84b6ea469ff2a5146251189451f..b29588d2f76193f0cc03fd72f66aa3c5c0389088 100644
--- a/chrome/browser/history/history_types.h
+++ b/chrome/browser/history/history_types.h
@@ -24,6 +24,8 @@
#include "content/public/common/page_transition_types.h"
#include "googleurl/src/gurl.h"
+class PageUsageData;
+
namespace history {
// Forward declaration for friend statements.
@@ -591,6 +593,19 @@ struct MostVisitedURL {
}
};
+// FilteredURL -----------------------------------------------------------------
+
+// Holds the per-URL information of the filterd url query.
+struct FilteredURL {
+ FilteredURL();
+ explicit FilteredURL(const PageUsageData& data);
+ ~FilteredURL();
+
+ GURL url;
+ string16 title;
+ double score;
+};
+
// Navigation -----------------------------------------------------------------
// Marshalling structure for AddPage.
@@ -634,6 +649,7 @@ class HistoryAddPageArgs
// TopSites -------------------------------------------------------------------
typedef std::vector<MostVisitedURL> MostVisitedURLList;
+typedef std::vector<FilteredURL> FilteredURLList;
// Used by TopSites to store the thumbnails.
struct Images {
« no previous file with comments | « chrome/browser/history/history_marshaling.h ('k') | chrome/browser/history/history_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698