OLD | NEW |
(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 }; |
OLD | NEW |