parent-process.js (846B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 "use strict"; 5 6 const { generateActorSpec } = require("resource://devtools/shared/protocol.js"); 7 const { extend } = require("resource://devtools/shared/extend.js"); 8 const { 9 windowGlobalTargetSpecPrototype, 10 } = require("resource://devtools/shared/specs/targets/window-global.js"); 11 12 const parentProcessTargetSpecPrototype = extend( 13 windowGlobalTargetSpecPrototype, 14 { 15 typeName: "parentProcessTarget", 16 } 17 ); 18 19 const parentProcessTargetSpec = generateActorSpec( 20 parentProcessTargetSpecPrototype 21 ); 22 23 exports.parentProcessTargetSpecPrototype = parentProcessTargetSpecPrototype; 24 exports.parentProcessTargetSpec = parentProcessTargetSpec;