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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: services/resource_coordinator/public/interfaces/coordination_unit.mojom
diff --git a/services/resource_coordinator/public/interfaces/coordination_unit.mojom b/services/resource_coordinator/public/interfaces/coordination_unit.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..6c86cd718daed5bee5686a4ced0570063316f038
--- /dev/null
+++ b/services/resource_coordinator/public/interfaces/coordination_unit.mojom
@@ -0,0 +1,37 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module resource_coordinator.mojom;
+
+import "events.mojom";
+
+enum IDType {
+ NONE,
+ WEBCONTENTS,
+ FRAME,
+ NAVIGATION,
+ PROCESS
+};
+
+struct CoordinationUnitID {
+ IDType type;
+ string id;
+};
+
+struct Policy {
+ bool use_background_priority;
+};
+
+interface PolicyCallback {
+ SetPolicy(Policy policy);
+};
+
+interface CoordinationUnit {
+ SendEvent(Event event);
+
+ GetID() => (CoordinationUnitID id);
+ Duplicate(CoordinationUnit& request);
+ 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
+ SetPolicyCallback(PolicyCallback callback);
+};

Powered by Google App Engine
This is Rietveld 408576698