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

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: address_comments 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 a85a47075f7b7983a6ddbb4fe556951d8f91b3f5..9590cbd878b8903567e3923ffacb1a127a3b890b 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"
@@ -118,6 +120,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();
raymes 2015/09/14 03:06:11 Score() returns a double, should this be a double?
calamity 2015/09/15 04:38:49 GetScore() returns an int. I believe the intention
raymes 2015/09/15 07:23:01 Ahh right, that makes sense. Sorry I was looking a
+
// Update the karma score of the origin matching |url| for user navigation.
void HandleNavigation(const GURL& url, ui::PageTransition transition_type);
« 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