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

Unified Diff: chrome/browser/engagement/site_engagement_service.h

Issue 1316043003: Add chrome://site-engagement WebUI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@navigation_smarter
Patch Set: fix dependencies Created 5 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 | « chrome/browser/browser_resources.grd ('k') | chrome/browser/engagement/site_engagement_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/engagement/site_engagement_service.h
diff --git a/chrome/browser/engagement/site_engagement_service.h b/chrome/browser/engagement/site_engagement_service.h
index 60644a4a4e3f504721d10a8a2e0666eb635dac34..2ab67a749a1cfe4fa1129eb7cc1aa233cac16b54 100644
--- a/chrome/browser/engagement/site_engagement_service.h
+++ b/chrome/browser/engagement/site_engagement_service.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_H_
#define CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_H_
+#include <map>
+
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/time/default_clock.h"
@@ -114,6 +116,9 @@ class SiteEngagementService : public KeyedService,
explicit SiteEngagementService(Profile* profile);
~SiteEngagementService() override;
+ // Returns a map of all stored origins and their engagement scores.
+ std::map<GURL, int> GetScoreMap();
+
// Update the karma score of the origin matching |url| for user navigation.
void HandleNavigation(const GURL& url);
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/engagement/site_engagement_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698