Index: components/metrics/leak_detector/leak_detector_remote.mojom |
diff --git a/components/metrics/leak_detector/leak_detector_remote.mojom b/components/metrics/leak_detector/leak_detector_remote.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..065df31c5912d5aabb59da1891ea4cabb363fc23 |
--- /dev/null |
+++ b/components/metrics/leak_detector/leak_detector_remote.mojom |
@@ -0,0 +1,20 @@ |
+// Copyright 2016 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 metrics; |
+ |
+// Provides a remote interface for enabling LeakDetector on remote processes. |
+interface LeakDetectorRemote { |
+ // Returns a MemoryLeakReportProto::Params in serialized format. Used to |
+ // indicate to the remote process what parameters to use when initializing |
+ // LeakDetector. Can also return |Params::sampling_rate| == 0 to indicate |
+ // that LeakDetector should not be initialized on a particular process. |
+ GetParams() => (string serialized_params); |
+ |
+ // When a remote process running LeakDetector gets some leak reports, it |
+ // should call this function to return the leak reports back to the main |
+ // process that implements this function. The reports should be sent back as |
+ // an array of serialized MemoryLeakReportProtos. |
+ SendLeakReports(array<string> serialized_reports); |
+}; |