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

Side by Side Diff: services/resource_coordinator/public/interfaces/coordination_unit.mojom

Issue 2710823003: NOCOMMIT prototype: GRC service plumbing and process priority
Patch Set: Buildfixes 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 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 resource_coordinator.mojom;
6
7 import "events.mojom";
8
9 enum IDType {
10 NONE,
11 WEBCONTENTS,
12 FRAME,
13 NAVIGATION,
14 PROCESS
15 };
16
17 struct CoordinationUnitID {
18 IDType type;
19 string id;
20 };
21
22 struct Policy {
23 bool use_background_priority;
24 };
25
26 interface PolicyCallback {
27 SetPolicy(Policy policy);
28 };
29
30 interface CoordinationUnit {
31 SendEvent(Event event);
32
33 GetID() => (CoordinationUnitID id);
34 Duplicate(CoordinationUnit& request);
35 AddChild(CoordinationUnitID child_id);
Ken Rockot(use gerrit already) 2017/03/15 22:51:55 I haven't fully understood the design here, so I m
oystein (OOO til 10th of July) 2017/03/15 23:12:24 I'd love to get rid of CoordinationUnitID, but unf
36 SetPolicyCallback(PolicyCallback callback);
37 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698