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

Unified Diff: components/ntp_snippets/content_suggestions_service.h

Issue 2315273002: Measure usage metrics to prepare for adaptive fetching rates in M55 (Closed)
Patch Set: Bernhard's comments Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/ntp_snippets/BUILD.gn ('k') | components/ntp_snippets/content_suggestions_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/content_suggestions_service.h
diff --git a/components/ntp_snippets/content_suggestions_service.h b/components/ntp_snippets/content_suggestions_service.h
index 1a922d2f4d5cffa60c42efdb3f2fcbe02320bdbf..50a6e6f5fe7e52ba48aeb096a1406c90477ba78a 100644
--- a/components/ntp_snippets/content_suggestions_service.h
+++ b/components/ntp_snippets/content_suggestions_service.h
@@ -7,6 +7,7 @@
#include <map>
#include <memory>
+#include <set>
#include <string>
#include <vector>
@@ -21,6 +22,9 @@
#include "components/ntp_snippets/category_factory.h"
#include "components/ntp_snippets/category_status.h"
#include "components/ntp_snippets/content_suggestions_provider.h"
+#include "components/ntp_snippets/user_classifier.h"
+
+class PrefService;
namespace gfx {
class Image;
@@ -81,7 +85,8 @@ class ContentSuggestionsService : public KeyedService,
};
ContentSuggestionsService(State state,
- history::HistoryService* history_service);
+ history::HistoryService* history_service,
+ PrefService* pref_service);
~ContentSuggestionsService() override;
// Inherited from KeyedService.
@@ -172,6 +177,8 @@ class ContentSuggestionsService : public KeyedService,
ntp_snippets_service_ = ntp_snippets_service;
}
+ UserClassifier* user_classifier() { return &user_classifier_;}
+
private:
friend class ContentSuggestionsServiceTest;
@@ -259,6 +266,8 @@ class ContentSuggestionsService : public KeyedService,
// loaded, it is also present in |providers_|, otherwise this is a nullptr.
NTPSnippetsService* ntp_snippets_service_;
+ UserClassifier user_classifier_;
+
DISALLOW_COPY_AND_ASSIGN(ContentSuggestionsService);
};
« no previous file with comments | « components/ntp_snippets/BUILD.gn ('k') | components/ntp_snippets/content_suggestions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698