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

Unified Diff: chrome/browser/engagement/site_engagement_details.mojom

Issue 2788413003: Add SiteEngagementService::GetAllDetails(), to return detailed scores. (Closed)
Patch Set: Created 3 years, 9 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/engagement/site_engagement_details.mojom
diff --git a/chrome/browser/engagement/site_engagement_details.mojom b/chrome/browser/engagement/site_engagement_details.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..8f724c55278a192e8990adbe3fab3dde88a5b8d8
--- /dev/null
+++ b/chrome/browser/engagement/site_engagement_details.mojom
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module mojom;
+
+import "url/mojo/url.mojom";
+
+struct SiteEngagementDetails {
+ url.mojom.Url origin;
+ double score;
dominickn 2017/04/06 01:47:16 I'd call this total_score to be explicit. Possibly
Wez 2017/04/08 01:52:53 Renamed, but left it where it is; it seems more na
+
+ // Details of the components which make up |score|. Note that these may
+ // sum to a value greater than |score| if it exceeds the maximum.
+ double base_score;
+ double installed_bonus;
+ double notifications_bonus;
+};
+
+interface SiteEngagementDetailsProvider {
+ GetSiteEngagementDetails() => (array<SiteEngagementDetails> info);
+ SetSiteEngagementBaseScoreForUrl(url.mojom.Url url, double score);
+};

Powered by Google App Engine
This is Rietveld 408576698