RootMessageHandlerRegistry.sys.mjs (808B)
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 5 import { MessageHandlerRegistry } from "chrome://remote/content/shared/messagehandler/MessageHandlerRegistry.sys.mjs"; 6 7 import { RootMessageHandler } from "chrome://remote/content/shared/messagehandler/RootMessageHandler.sys.mjs"; 8 9 /** 10 * In the parent process, only one Root MessageHandlerRegistry should ever be 11 * created. All consumers can safely use this singleton to retrieve the Root 12 * registry and from there either create or retrieve Root MessageHandler 13 * instances for a specific session. 14 */ 15 export var RootMessageHandlerRegistry = new MessageHandlerRegistry( 16 RootMessageHandler.type 17 );