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

Side by Side Diff: chrome/browser/engagement/site_engagement_details.mojom

Issue 2788413003: Add SiteEngagementService::GetAllDetails(), to return detailed scores. (Closed)
Patch Set: Fix notifications permission logic & test Created 3 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module mojom;
6
7 import "url/mojo/url.mojom";
8
9 struct SiteEngagementDetails {
10 url.mojom.Url origin;
11 double total_score;
12
13 // Details of the components which make up |score|. Note that these may
14 // sum to a value greater than |score| if it exceeds the maximum.
15 double base_score;
16 double installed_bonus;
17 double notifications_bonus;
18 };
19
20 interface SiteEngagementDetailsProvider {
21 GetSiteEngagementDetails() => (array<SiteEngagementDetails> info);
22 SetSiteEngagementBaseScoreForUrl(url.mojom.Url url, double score);
23 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698