gecko-dev/remote/domains/ParentProcessDomains.jsm
Henrik Skupin 5a966347fc Bug 1600053 - [remote] Implement IO.read. r=remote-protocol-reviewers,baku,ato,maja_zf
This patch implements the IO.read() method to allow
reading streams for files and blobs.

Therefor all the methods in the IO domain need a registry
for streams. Those have to be stored globally because
they need to be kept existent across different client
connections.

Differential Revision: https://phabricator.services.mozilla.com/D55968

--HG--
extra : moz-landing-system : lando
2019-12-16 16:17:59 +00:00

25 lines
961 B
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
var EXPORTED_SYMBOLS = ["ParentProcessDomains"];
const { XPCOMUtils } = ChromeUtils.import(
"resource://gre/modules/XPCOMUtils.jsm"
);
const ParentProcessDomains = {};
XPCOMUtils.defineLazyModuleGetters(ParentProcessDomains, {
Browser: "chrome://remote/content/domains/parent/Browser.jsm",
Emulation: "chrome://remote/content/domains/parent/Emulation.jsm",
Input: "chrome://remote/content/domains/parent/Input.jsm",
IO: "chrome://remote/content/domains/parent/IO.jsm",
Network: "chrome://remote/content/domains/parent/Network.jsm",
Page: "chrome://remote/content/domains/parent/Page.jsm",
Security: "chrome://remote/content/domains/parent/Security.jsm",
Target: "chrome://remote/content/domains/parent/Target.jsm",
});