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

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 comments. 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
Index: chrome/browser/history/history_types.h
diff --git a/chrome/browser/history/history_types.h b/chrome/browser/history/history_types.h
index 5cd4ce6b14361efb462ada43ace72edcd91336cc..d95c82ceeee46feb016505442a9294380b8ce9d7 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 {

Powered by Google App Engine
This is Rietveld 408576698