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

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

Issue 2798713002: Global Resource Coordinator: Basic service internals (Closed)
Patch Set: Review fixes 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 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 [Native]
10 enum CoordinationUnitType;
11
12 [Native]
Ken Rockot(use gerrit already) 2017/04/10 23:58:00 Please don't do this. It's useful if you're conver
13 struct CoordinationUnitID;
14
15 struct Policy {
16 bool use_background_priority;
17 };
18
19 interface PolicyCallback {
20 SetPolicy(Policy policy);
21 };
22
23 interface CoordinationUnit {
24 SendEvent(Event event);
25
26 // Mainly used to force a round-trip to the service over the pipe for
27 // a specific unit, so we don't have to deal with possibly-not-yet-created
28 // children in AddChild()
29 GetID() => (CoordinationUnitID id);
30
31 Duplicate(CoordinationUnit& request);
32 AddChild(CoordinationUnitID child_id);
33 SetPolicyCallback(PolicyCallback callback);
34 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698