Bug 1690468 - [remote] Move Remote Agent component related files to components/. r=remote-protocol-reviewers,jgraham

Depends on D103944

Differential Revision: https://phabricator.services.mozilla.com/D104159
This commit is contained in:
Henrik Skupin 2021-02-05 13:23:40 +00:00
Родитель 696ff9be8a
Коммит 7cb9dcf75e
9 изменённых файлов: 16 добавлений и 11 удалений

Просмотреть файл

Просмотреть файл

@ -6,7 +6,7 @@ Classes = [
{
"cid": "{8f685a9d-8181-46d6-a71d-869289099c6d}",
"contract_ids": ["@mozilla.org/remote/agent;1"],
"jsm": "chrome://remote/content/RemoteAgent.jsm",
"jsm": "chrome://remote/content/components/RemoteAgent.jsm",
"constructor": "RemoteAgentFactory",
},
{

Просмотреть файл

@ -0,0 +1,8 @@
# 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/.
XPIDL_MODULE = "remote"
XPIDL_SOURCES += ["nsIRemoteAgent.idl"]
XPCOM_MANIFESTS += ["components.conf"]

Просмотреть файл

Просмотреть файл

@ -4,7 +4,7 @@
remote.jar:
% content remote %content/
content/RemoteAgent.jsm (RemoteAgent.jsm)
content/components/RemoteAgent.jsm (components/RemoteAgent.jsm)
content/Connection.jsm (Connection.jsm)
content/Error.jsm (Error.jsm)

Просмотреть файл

@ -3,16 +3,13 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
DIRS += [
"components",
"startup",
"test",
]
XPCOM_MANIFESTS += ["components.conf"]
JAR_MANIFESTS += ["jar.mn"]
XPIDL_MODULE = "remote"
XPIDL_SOURCES += ["nsIRemoteAgent.idl"]
with Files("**"):
BUG_COMPONENT = ("Remote Protocol", "Agent")
with Files("domains/**/Emulation.jsm"):

Просмотреть файл

@ -13,7 +13,7 @@ const { MainProcessSession } = ChromeUtils.import(
"chrome://remote/content/sessions/MainProcessSession.jsm"
);
const { RemoteAgent } = ChromeUtils.import(
"chrome://remote/content/RemoteAgent.jsm"
"chrome://remote/content/components/RemoteAgent.jsm"
);
/**

Просмотреть файл

@ -17,7 +17,7 @@ const { XPCOMUtils } = ChromeUtils.import(
"resource://gre/modules/XPCOMUtils.jsm"
);
const { RemoteAgent } = ChromeUtils.import(
"chrome://remote/content/RemoteAgent.jsm"
"chrome://remote/content/components/RemoteAgent.jsm"
);
XPCOMUtils.defineLazyServiceGetter(

Просмотреть файл

@ -5,12 +5,12 @@
const { OS } = ChromeUtils.import("resource://gre/modules/osfile.jsm");
const { RemoteAgent } = ChromeUtils.import(
"chrome://remote/content/components/RemoteAgent.jsm"
);
const { RemoteAgentError } = ChromeUtils.import(
"chrome://remote/content/Error.jsm"
);
const { RemoteAgent } = ChromeUtils.import(
"chrome://remote/content/RemoteAgent.jsm"
);
const TIMEOUT_MULTIPLIER = SpecialPowers.isDebugBuild ? 4 : 1;
const TIMEOUT_EVENTS = 1000 * TIMEOUT_MULTIPLIER;