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

Unified Diff: components/ntp_snippets/content_suggestions_service.h

Issue 2342553002: Measure usage metrics to prepare for adaptive fetching rates in M55 (Closed)
Patch Set: 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 c4fca54a7c4b4c22bbf4bc4b9cd33b98fde18344..641f83794e40215688b611a0ac8d6bdcd36e2e45 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;
@@ -82,7 +86,8 @@ class ContentSuggestionsService : public KeyedService,
};
ContentSuggestionsService(State state,
- history::HistoryService* history_service);
+ history::HistoryService* history_service,
+ PrefService* pref_service);
~ContentSuggestionsService() override;
// Inherited from KeyedService.
@@ -173,6 +178,8 @@ class ContentSuggestionsService : public KeyedService,
ntp_snippets_service_ = ntp_snippets_service;
}
+ UserClassifier* user_classifier() { return &user_classifier_;}
+
private:
friend class ContentSuggestionsServiceTest;
@@ -260,6 +267,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