1 // Copyright 2016 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 blink.mojom;
6
7 enum EngagementLevel {
8 NONE,
9 MINIMAL,
10 LOW,
11 MEDIUM,
12 HIGH,
13 MAX,
14 };
15
16 interface EngagementClient {
17 // The browser tells the renderer the engagement level of the current URL.
18 SetEngagementLevel(EngagementLevel level);
nasko
2016/11/28 19:18:08
I would suggest adding the URL as an explicit para
I would suggest adding the URL as an explicit parameter, as navigations are
inherently a racy part of the browser, so the idea of "current URL" can mismatch
between processes.
Having an explicit URL allows the receiver to verify it. The HostZoom level
works in a similar way, if you are looking for equivalent feature.
On 2016/11/28 19:18:08, nasko wrote:
> I would suggest adding the URL as an explicit parameter, as navigations are
> inherently a racy part of the browser, so the idea of "current URL" can
mismatch
> between processes.
> Having an explicit URL allows the receiver to verify it. The HostZoom level
> works in a similar way, if you are looking for equivalent feature.
Issue 2535483002: Plumb site engagement to the renderer process.
(Closed)
Created 4 years ago by dominickn
Modified 3 years, 12 months ago
Reviewers: jochen (gone - plz use gerrit), benwells, dcheng, esprehn, haraken, nasko
Base URL:
Comments: 43