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

Side by Side Diff: services/memory_infra/public/interfaces/memory_infra.mojom

Issue 2621143002: memory-infra: Introduce mojo interfaces and service stubs (Closed)
Patch Set: review Created 3 years, 11 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 memory_infra.mojom;
6
7 enum DumpType {
8 PERIODIC_INTERVAL,
9 EXPLICITLY_TRIGGERED,
10 PEAK_MEMORY_USAGE
11 };
12
13 enum LevelOfDetail {
14 BACKGROUND,
15 LIGHT,
16 DETAILED
17 };
18
19 struct RequestArgs {
20 uint64 dump_guid;
21 DumpType dump_type;
22 LevelOfDetail level_of_detail;
23 };
24
25 // Memory Infra clients implement this interface. There should be at most one
26 // client per process.
Primiano Tucci (use gerrit) 2017/01/16 15:11:04 maybe expand a bit more saying. When successful, t
chiniforooshan1 2017/01/16 18:14:48 Done.
27 interface Client {
Primiano Tucci (use gerrit) 2017/01/16 15:11:04 naming bike-shedding, yay: client may be a bit gen
chiniforooshan1 2017/01/16 18:14:48 Done.
28 RequestProcessMemoryDump(RequestArgs args) =>
29 (uint64 dump_guid, bool success);
30 };
31
32 // Memory Infra service implements this interface. Clients register themselves
33 // using the RegisterClient method and suggest a global memory dump using the
34 // RequestGlobalMemoryDump method.
35 interface Coordinator {
36 RegisterClient(Client client);
37 RequestGlobalMemoryDump(RequestArgs args) => (uint64 dump_guid, bool success);
38 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698