blob: 9316da908f39e652344b32b9ee5688e6c7763ba0 [file] [log] [blame]
// Copyright 2018 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.
/** @enum {number} */
heapProfiling.mojom.ProcessType = {};
heapProfiling.mojom.ProcessType.OTHER;
heapProfiling.mojom.ProcessType.BROWSER;
heapProfiling.mojom.ProcessType.RENDERER;
heapProfiling.mojom.ProcessType.GPU;
heapProfiling.mojom.ProcessType.LAST;
goog.provide('heapProfiling.mojom.ProfilingService');
goog.provide('heapProfiling.mojom.ProfilingServiceImpl');
goog.provide('heapProfiling.mojom.ProfilingServicePtr');
/**
* @const
* @type { !mojo.Interface };
*/
heapProfiling.mojom.ProfilingService;
/** @interface */
heapProfiling.mojom.ProfilingServiceImpl = class {
/**
* @param { !mojoBase.mojom.ProcessId } pid
* @param { !heapProfiling.mojom.ProfilingClientPtr } client
* @param { !heapProfiling.mojom.ProcessType } processType
* @param { !heapProfiling.mojom.ProfilingParams } params
*/
addProfilingClient(pid, client, processType, params) {}
/**
* @return {Promise}
*/
getProfiledPids() {}
};
/**
* @implements { mojo.InterfacePtr }
* @implements { heapProfiling.mojom.ProfilingServiceImpl }
*/
heapProfiling.mojom.ProfilingServicePtr = class {
/**
* @param { !mojoBase.mojom.ProcessId } pid
* @param { !heapProfiling.mojom.ProfilingClientPtr } client
* @param { !heapProfiling.mojom.ProcessType } processType
* @param { !heapProfiling.mojom.ProfilingParams } params
*/
addProfilingClient(pid, client, processType, params) {}
/**
* @return {Promise}
*/
getProfiledPids() {}
};
goog.provide('heapProfiling.mojom.ProfilingService_AddProfilingClient_Params');
heapProfiling.mojom.ProfilingService_AddProfilingClient_Params = class {
constructor() {
/** @type { !mojoBase.mojom.ProcessId } */
this.pid;
/** @type { !heapProfiling.mojom.ProfilingClientPtr } */
this.client;
/** @type { !heapProfiling.mojom.ProcessType } */
this.processType;
/** @type { !heapProfiling.mojom.ProfilingParams } */
this.params;
}
};
goog.provide('heapProfiling.mojom.ProfilingService_GetProfiledPids_Params');
heapProfiling.mojom.ProfilingService_GetProfiledPids_Params = class {
constructor() {
}
};
goog.provide('heapProfiling.mojom.ProfilingService_GetProfiledPids_ResponseParams');
heapProfiling.mojom.ProfilingService_GetProfiledPids_ResponseParams = class {
constructor() {
/** @type { !Array<mojoBase.mojom.ProcessId> } */
this.pids;
}
};