Source code

Revision control

Copy as Markdown

Other Tools

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* 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 */
#include "nsISupports.idl"
interface nsIPrincipal;
interface nsIURI;
* C++ exposed interface for the `E10SUtils` object from the
[scriptable, uuid(1e18680e-052d-4509-a17e-678f5c495e02)]
interface nsIE10SUtils : nsISupports {
cenum RemoteWorkerType: 8 {
* Determine what remote type should be used to launch a worker script with
* the given principal.
* @param aPrincipal
* The result principal for the document being loaded.
* @param aWorkerTypeName
* The type of remote worker being launched (Ci.nsIE10SUtils.REMOTE_WORKER_TYPE_*).
* @param aIsMultiProcess
* A boolean to indicate if e10s enabled.
* @param aIsFission
* A boolean to indicate if fission is enabled.
* @param aPreferredRemoteType
* If multiple remote types are compatible with the worker,
* prefer staying in this remote type.
* @return The remote type to launch the worker in.
AUTF8String getRemoteTypeForWorkerPrincipal(in nsIPrincipal aPrincipal,
in nsIE10SUtils_RemoteWorkerType aWorkerType,
in boolean aIsMultiProcess,
in boolean aIsFission,
in AUTF8String aPreferredRemoteType);